Created js-message bridge between C and JS

C communicates to JS with MSG(&res, "channel", some_struct)
JS uses JsMessage{pack,unpack} to extract data
Merge pull request #747 from bkase/js-message

Created js-message bridge between C and JS r=@ochameau