Refactor for flash messages and a fix for scrolling on the login page.  Alerts on all pages should now auto-scroll.