Meromorphic continuation of Dirichlet series for CM-periods of automorphic functions on GL(2)