Mainly fixing concurency issues with the MysqlEventSource

* Refactorings
* Utilities for testing
* Removed not needed validation from EventPoller class