Implemented video/webgl integration.

Also reordered the ifdef guards a bit.
Merge pull request #11 from Metrological/videowebgl

Implemented video/webgl integration.