Refactored caching to only be handled by the database. Changed available settings. Disabled caching of NDOs with video* algorithms unless the publish is local.
Merge branch 'caching'