Move install functions into separate script

This allows a specific version and download file to be specified outside
the script and allows for reuse of all other portions of the script