Improve error output from Platform.sh API calls.

This addresses #150.

The error message and detail could be tweaked quite a lot.

But otherwise I don't think much more should be done until we have upgraded to Guzzle 5 and separated out the API component a bit more.