Added encryption for token generation. Note that it breaks some platform builds
split out encrytion
remove commented out chuff
more error checking
check for admin endpoint in root url
disable encryption for tests
tidy up
Allow token encryption to be disabled. Tweaked operations to simplify construction
reset public key response if we are also resetting the token
Dont try to encrypt token request for arcgis online
add referer to encryption
I think it works!
Merge branch 'crypto' into dev