Major overhaul of document ids, required for resolution of various caching issues.
Fixing the stages to conform to new apis
Fixing compile error
Fixing compilation failure ;(
Removingcommented out code
Merge pull request #165 from jwestberg/caching-refactor

Refactored Document IDs to be consistent across DatabaseConnector