Fix a bug with replication delay

* moved some files around to cleanup the repository structure
* adding some acceptance tests
* fixed the test data generation scripts
* fixed a bug that would cause an EmptyEventError when it received an event that was older than 1 hour