Revision 2:

Changes:
-added support for Firefox getUserMedia apis
-fixed a race condition seen in Firefox 21 (thanks to jkolivas for noticing this and suggesting a fix!)
-merged commits from ryanramage (thanks!):
  -commonjs/amd package support
  -grunt.js build tools