[0.2.0] major refactor

- switch to sorted-set instead of binary_heap
- optimize setInterval usage
- normalize coding style

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>