* hotfix/gh-828:
Make `X-Requested-With` overridable
use `defaults` again
Only apply `X-Requested-With` to same domain
check street number range for address
# Conflicts:
# src/lib/api.js
Fixes#654
IE does not honor responseType: 'json', and will not parse responses as JSON unless json data is present in the request. For some reason this issue can also be solved by including a `json` attribute on the xhr request, but if that's present, url encoded form data is overwritten with the contents of the json. So just try to parse the response ourselves if it looks like it wasn't parsed.
See https://github.com/Raynos/xhr/issues/123
Some of our legacy endpoints expect this style rather than json.
Also clean up the way useCsrf works — don't always set json attribute to an empty object.