Geometry and Arithmetic - Estimates of periods of automorphic functions and subconvexity of L-functions