Initial commit of install.sh (untested). Reorganise bash files and remove cruft.