Updated main layout so that all types of flash messages are displayed, and
updated sessions controller so that login errors result in only one flash
message and login successes are displayed as such.

Resolves Redmine issue #2509.