Issue 18 event types to js bridge

fixes #18

implements new js bridge format as per wiki. added support for object stats and gc stats
done.