Moved queries and rules to a sub-namespace of db.
Updated events to contain some more data while retaining its :db/ident(ity) so we can query a list of events that belong to any given application.
Added utils namespace with a questionable fn.
Updated schema to reflect :event.type as an entity with attributes beyond :db/ident.