Message navigation bar template

Created a new template for the message navigation bar, and modified the
existing message pages to use this. Prevents code duplication.