Move Base64 functions into their own files; rename methods in context