Handle capitalized message key in errors

Fixes #256 by looking for both `message` and `Message` in returned errors.
Adds a test to ensure this works as expected.

@jamesls, please review.