Updated to SSL 

Updated to SSL and made token and install directory dynamic