Issue #235 Handle session errors for ajax requests

Delivers #235 

Also allow the login form to be displayed and focused in the homepage by adding the param ?login=true.

Have added a new message that will include a link to the login form when a session[:user] is empty and one of the session messages is displayed.