Split out some files and debugged legacy webkitGetUserMedia error
A little formatting