Add base64 decoding/encoding code - taken from nall