Initial commit of the installer program

Some bits to tidy up but it works for me!