Cleaned up some of the webserver code. Added a 500 error which is served when an exception is thrown in the process of serving another page.