Refactoring after discussion with Joost

* resources can get and put themselves
* resolving rel independent of http ops
* resolve rel returns halresource
* update self after get
* use Object.create