Speed up queueing of event data.
Speed up pattern match
Reverting to previous method for validation

- The original way was just fine
- Also added a test
Store timestamps as integers

- No point in converting to timestamp format if we're not going to use
  it.
- Improves insert speed.
Cleaning up unused stuff.
Move indexing into archive, drop archive_lookup
Index confidence
Use CIF::PostgresDataStore

- Added query functionality
Referenced non-existent value
Unbreak indexing!
Remove pointless index lookup
Only use transactions when flushing.
Make prefetch_count configurable