The API should return a proper content type when asking for entries

I noticed that the API always returns the content type text/html, even though json or xml is requested. 

The reason for this was because the method content_type (which is a vanilla method in Rails controllers) was overloaded. I simply renamed it.