pull in stuff from nick's branch pastasfuture/node-webgl