Following this stackoverflow article:
http://stackoverflow.com/questions/22915461/google-login-server-side-flow-storing-credentials-python-examples

Fixes the /connect handler, but now /moment has an error.