Resolve promise if xhr status code is between 200 and 399, else reject
Merge pull request #1 from dblandin/update-xhr-load-handling

Resolve promise if xhr status code is between 200 and 399, else reject