Mock theta functions, ranks, and Maass forms