Rewriting the install script from scratch

I found that there were serious flaws in the install script that
actually damaged some of the config files, so I've opted to start over,
using a different strategy. Much of the older code has been removed, and
new code will soon take it's place.