1. Tightened up the messages template
2. Fixed 404 and 500 pages