Implement Eventloop based on pecl/event

Fix #161

The tests are failing for now, I submitted an issue about it: https://bugs.php.net/bug.php?id=64652