Bug 964342: Send language setting to basket.

* Add error codes to basket client.
* Use error code for invalid email instead of looking for a message.
* Add timeout handling for call to basket.
* Fix regression found in bug 971147.