Fixed attribute parsing from JSON

* Hashie::Mash has to be re-typed to Occi::Core::Attributes
  including all its child elements
* DRYed the parser code for JSON