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
Correct me if I am wrong, but I don't think we need different methods for each event type. we can define one generic method such as `sendMaptoJs(const QString& eventName, const QVariantMap& map)` and that will take are of sending right event to JS.