Mock theta functions and applications in combinatorics, algebraic geometry, and mathematical physics