Rejects promises when xhr fails
Merge pull request #24 from mrappleton/promise-fail

Rejects promises when xhr fails