Encapsulate Base64 calls in a single component

Handles https://github.com/Jasig/cas/issues/760