Zeros and moments of L-functions and applications