Loop through all mediastream tracks and stop them

Fixes #257
https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#for-in_loop