Heegner divisors, L-functions and harmonic weak Maass forms