server: moved g.user before_request setup into flask_login extension module
server: refactored views into separate modules