Make the worker load the configuration as a script to avoid async initialisation routines

We keep hitting issues where the async initialisation of the worker is causing test failures or real failures. This PR is the first part of a [card](https://trello.com/c/AplbU0yd) to reduce those cases.

It adds a config.js file to the server similar to the config.json file, and has the worker load that file.