Be smarter when asking for a private key
Refactor install script options

+ Added the option to not use the host's IP as the endpoint.
+ Reversed the repo and revision options to something more sensible.