removed some session actions in route. added log in link in index page, ...

...and fixed flash notices by adding flash notice in application layout. Also added one js function in app.js file for flash notice to time out after 5000 ms