Quick cleanup and small fix for the API

Now allow content negotiation using HTTP_ACCEPT (rather than just using .json and .xml) Also removed verifying that ids are numeric, as using strings for ids might be a good idea in the future.