Fixed an issue where the XML wasn't serializing/unserializing correctly.
Added an Error type that knows how to print map[string]interface{}
Changed the content type of JSON REST.