- Splitting front-end code into multiple files.
- getChannel now always creates the channel if needed.
- _createChannel is now private.