Adds serialization basics

* Add JSON and YAML serialization helpers
* Simple test for API response/request interaction
* Add to_dict method to model base
* Add request context hook