Added #hash implementation for Occi::Core classes

+ added #==, #eql? and #hash for Occi::Collection
Formatting fixes + linking fix

* A Link must have a unique occi.core.id before it
  can be inserted into Links
* Specs should be always separated by at least
  one blank line, for readability
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
Fixed comparators for Categories and Entities

* Specs are still failing, something is broken in
  the JSON parser
Merge pull request #40 from arax/cmp_fix_2

Updated comparators (#==, #eql? and #hash) for Occi::Core and Occi::Collection