Listen for messages from other bundles

- Listen to messages from other bundles (helps #13)
- Fixes a case where listeners could be called twice when the socket reconnected
- Added documentation for the Javascript API