Bug 922759 - Return numeric error codes

NOT ready to merge but okay to review

Once https://github.com/mozilla/basket-client/pull/22 is merged, will update the basket-client in basket-lib, get that merged, then update the basket-lib version here...