Takes an object of CommonJS module paths that export functions and returns an object of functions that call the module functions in a worker.