Use hex encoding for application ids/keys

/to @ritch 

base64 encoded ids/keys are not friendly for urls