Don't force XML for ajax requests
Merge pull request #40 from ignu/master

Don't force xml for ajax requests
Merge upstream master into repo