Beef up the validation error class
* Build tests for it
* Make sure we set the content type (Fixes #39)

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>