Fixed typo in function doc
Fixed indentation
Added encode64url, decode64url, encode32hex and decode32hex
Changed the decode functions as suggested by @fishcakez to treat the
last group as a special case
Changed do_encode64/do_decode64 to private macros.