Add Base64 encode/decode methods.
Cleanup and add missing calls to free memory.
Favor methods returning pre-allocated memory.
Update README.md with method descriptions.
Handle input and output length inside the methods.
Cleanup test file.