Add encode/decode methods that take key as a byte array

Also expose the Base64URL methods, so that it's easy to use
Base64URL-encoded keys with the library.