Add histogram log file as test input.
Add newline to log file.
[C] Add more partial implementation for histogram logging.
[C] Add and tidy up base64 decode tests.
[C] More comments.
[C] Improved base64 encode/decode functions.  Code and test clean up and formatting.