Serialize inner classes using the correct class name string.
Use data field to serialize error messages instead of full response.
Merge pull request #8 from rallysf/serialize-inner-classes

Update error serialization and handle inner class deserialization