Minor issues in Hex and Unhex implementations.
Add TO_BASE64 and FROM_BASE64 functions.
Add YAML tests for them.
merge MMcM:  Add TO_BASE64 and FROM_BASE64 functions.

Merge pull request #1075 from MMcM/sql-layer/base64-funs
https://github.com/FoundationDB/sql-layer/pull/1075