Add integer encoding, move to encode_to_list to mimic erlang's Base64 module.
Add and update tests