Periodic continued fractions and elliptic curves over quadratic fields. (September 2016)