Setup streamlined & unit tested

Setup now only involves copying/modifying 1 file and then the first time the index.php is opened it will do all the setup.