Added a before_request handler to app/views.py.
g.user is checked to determine if a user is already logged in. It is set up in the before_request handler.
current_user is a global set by Flask-Login, and we put a copy of it in g for better access. All requests now have access to logged in user, also within templates.