Encrypt password information when getting token

Add support for getting ArcGIS Server public key and encrypt password
using RSA during token generation.