Remove duplicate <link> tags and rename app.js to main.js
Broadcast no longer needs to be a global
Mix emitter into camera object
Tidy comments
Simplify toggle logic and remove unused flash code
Remove DOM code
Improve legibility
Use camera emitter instead of global pubsub
Remvoe DOM code
New API to allow user to pass in a video element to load the preview stream into. This is so that we can fire the done callback when we know that the stream is flowing into the video.
Various tidy
Emit events on camera emitter instead of global pubsub
Misc tidy
Use camera emitter ovr global pub sub
Remove unnecessary global
Move camera init logic into app controller
CSS tidy
Move activity logic out of camera and into its own module
Introduce viewfinder controller
New API to set capture mode on conrols