Config file generation

Move config generation to PHP as it's the final NodeJS dependent non-dev feature