Elliptic polylogarithms: An analytic theory