Add install script, jacked from @sontek.