initial version of install script

Taken from https://raw.github.com/haku/etc/master/install
NB: Doesn't work yet