Switch to using cqengine for memory backend datastore

Indexing for qualifier values is not currently working properly, so has
been disabled. That needs to be re-added later on for performance.
Add in event actions that were missed the first time around
Rough initial implementation of inheritance. Fixes #1519