added 404 and 500 templates, edited base template, added added a table to app_settings