Move the getMedia call before getting the peer connection to reduce callback complexity
Add some documentation to the public media.js functions and shorten the names of the callback variables.
Add streams to elements via app events, removing the need to pass the video elements around the media system
Fix calls to fully connect again. Also fix jshint errors
Stop passing video elements to closePeerConnection
In onaddstream for peer connection, don't rely on event.type as it isn't in the spec (get{Audio,Video}Tracks should be used instead if necessary).
Fix comment typo
Merge pull request #56 from Standard8/media_tidy

Tidy up media.js in preparation for chrome integration