Merge pull request #27 from akkie/master

Use content negotiation to test for Ajax requests
Refactoring of the social providers