add adapter.js
Cleanup Javascript

Create a Chatterbox class to coordinate everything between the signaling and media layers. Exposes functions to the main function to handle UI changes.