Add a MainWorker to work with the scheduler, implement a log fallback
for browser that do not have a console object in webworkers (not
tested).