Add XHR header so Rails will give back JSON

Rails ignores content negotiation when the Accept header includes `*/*`.
By adding the XHR header for Angular requests, it'll fix the behavior.

See https://github.com/rails/rails/issues/9940 and https://github.com/angular/angular.js/issues/1004