Clean up route declarations a little.

Remove response file, and send proper mime type for 404 handler
Add a method check handler, and if the request method isn't allowed send
a 405.

Add back response file and make a proper error response function to send
JSON errors with a given message defaulting to the status code text