Installer now writes config file

Tightened up installer. Now writes the installer lock only if everything
succeeded. Config file automation is now a thing!