refactors host.js, adds comments and removes unused pub-sub events
Merge pull request #46 from scottjason/refactor-host.js

refactors host.js, adds comments and removes unused pub-sub events