Use pkg_check_modules to find libevent inside CMakeLists.txt

Removed annoying debug message for dispatch
Big mistake/correction - forgot my increment operation on the id's in
generateId()
Super hacky garbage attempt at handling OneShot events (removing and
freeing them).  Works on and off so far, but I've seen a SEGV on quit.

TODO: Investigate and fix or revert ASAP