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
adding demo html page
adding canvas with demo image
adding copy of core headtrackr js
adding "slim" parameter to headtrackr2 (to slim down functionality and work around video), pulling nicenicejpg.com image locally due to CORS
adding interval to randomly bounce image around on canvas
adding addy osmani's getUserMedia.js (https://github.com/addyosmani/getUserMedia.js)
adding proof of concept for getUserMedia.js, turning off nicenicejpg canvas (mirroring webcam to canvas instead)
removing unused dom elements from index.html
modifying proof of concept for getUserMedia.js (enabling flash fallback)
adding "tryNative" option to getUserMedia.js to toggle native getUserMedia support
optimizing getSnapshot
adding updateFrequency parameter
reverting back to static image and debug canvas
Merge remote-tracking branch 'remotes/origin/master' into dev