Several major changes

- New folder structure
- Pass list of functions to control event subscribers
- New methods for getting list of all tables and keys