Renamed most functions in idlerun.cc.
Added Active event trigger.
Tweaked test/test.js