login changes to User model and view
login user or create new user if new user
define login page for Flask-login
hook flask-login's current_user to g.user
add loginmanger and oid to config
fix typo and gitignore tmp/
add logout route
add logout route to base if user is authenticated