Handle session errors for ajax requests; Allow login form to be displayed on homepage via param ?login=true;
Merge pull request #272 from hudmol/inline-messages-for-session-errors

The ?login=true functionality looks nice.