Update to work with latest models

* Update to latest version of model gem
* Fix up tests
* Revise API so that it exposes observation as a simple flat JSON file, but also includes dimensions and attributes hashes