More code cleanup, including lots of changes to clean up and improve many of the templates. Fixed a few bugs, added a few miscellaneous functions and methods, added 404 and 500 error pages, added bros only stylesheet.