ConnectManager: - [webOS platform] Abstract out media loading into loadMedia method
ConnectManager:
- [webOS platform] Abstract out media loading into loadMedia method

WebOSAppChannels:
- Make WebOSAppChannels a singleton
- Abstract out the p2p message handling into separate methods
- Abstract out the mediaCommand handling into separate methods
- For playMedia mediaCommand, use ConnectManager.loadMedia()
- Move websocket open log message to onopen handler
- Add simple websocket error handler (echo the errors)

SimpleEventEmitter mixin:
- When emitting events, call the local "on..." handler before invoking listener callbacks.

mauricionr/Connect-SDK-JavaScript-Bridge,ConnectSDK/Connect-SDK-JavaScript-Bridge,mauricionr/Connect-SDK-JavaScript-Bridge