Add default Accept header for XHR

By default we're expecting JSON, so it should be "application/json, text/*"
Merge pull request #267 from iartem/next

Add default Accept header for XHR