Moved code to deal with messages so that all pages can deal with login messages.

The code for creating message bar was moved from index.php to include/header.php, making it available to all pages.