Content negotiation

These two commits return 404 Not Found instead of 500 Internal Server Error and use content negotiation (using the JsonFormatter registered on HttpConfiguration) so that requests that ask for xml receive xml.