Introduce eventLoop() to public API
Added eventLoop() tests and docs.
Merge pull request #13 from tristanls/event-loop-tests

Added eventLoop() tests and docs.
Merge pull request #12 from tristanls/event-loop

Add eventLoop() to public API