Refactor for safe handling of WorkQueue callback; added 'config' package; added package.json