A small web worker wrapper. Works on both client and worker