Use content negotiation to test for Ajax requests
Merge pull request #27 from akkie/master

Use content negotiation to test for Ajax requests