Port primary index to use programm pointers to build rather than basing from flags
Use pointers to determine live & current, rest still use flags as other status's are for info purposes only
fix brokent tests
Flush caches when system settings change
Fix historical revisions
Merge pull request #628 from unikent/feature/index-use-pointers-not-flags

Use pointers not flags [DNM]