Merge pull request #136 from atlasapi/content-msg-id

Content update messages use Content id not URI
Fix segment writes

Query criteria was inconsistent with dbo being saved, since the
type of the ID in the query is a string, yet in the dbo it is
a long.
Merge pull request #138 from atlasapi/segment-save

Fix segment writes
Improve DbObjectHashCodeDebugger by logging entries in order
Merge branch 'improve-hashcode-debugger' into stage

* improve-hashcode-debugger:
  Improve DbObjectHashCodeDebugger by logging entries in order
  Fix segment writes