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

Also expose the Base64URL methods, so that it's easy to use
Base64URL-encoded keys with the library.
Merge pull request #4 from thughes/master

Add encode/decode methods that take key as a byte array and expose Base64URL encode/decode methods.