Huge merging

* Reworked events and listeners
* Fixed a couple of bugs in UI.
* Provided gestures.
* Merged with original repo.
* Little fixes in renamed methods after merging.