Added real do_work handler (requires execjs)
'ping_flash2' commands are now handled (credit goes to @adammw)
Reformatted and added missing parameter to track event calls