flask: Only attach logging handlers in webserver mode
flask: Adjusted logger handling again

daemon and webserver were fighting for the right to write the log file...
views/flights: Fixed the /date/<date> route
templates: Fixed g.identity usage
templates/users: Fixed template condition
templates: Used url_for() where possible

Reduced possibility of dead links