Merge pull request #160 from jwestberg/disable-cache

Disabling cache, since it's currently broken in some cases. 

This is needed, and this works as a temporary fix
Merge pull request #164 from jwestberg/stage-restart

Fixes shutdown hook problem when stages crash
Major overhaul of document ids, required for resolution of various caching issues.
Fixing the stages to conform to new apis
Fixing compile error