Bug 1071244, 1071248 — Log WS errors + reason.

Previously to this commit, all the errors weren't actually getting logged to
heka, and their reason was never logged.