Fixed broken url in 404 template that was triggering 500 errors; added debug 404/500 template urls