Removing unused urls and view handlers. Fixing 404 and 500 error pages.