Add webworker support to core

Add support for web workers to core.

- runtime detection (set to 'worker')
- console output forwarding
- optional prefixing relative urls while script loading

prefixing urls is necessary to support standard kernel and source loading in jasy.