Early WebWorker support.

Hi cscott, I added minor stuff to enable webworker support. There are some dependencies from other projects. ;)