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
i thought its better for jsbridge to emit signals from subscriber thread, rather than from main thread.