Support creating binary blobs using Base64 encoding.

The current createTreeAndAddFile uses the content field of the POST to /trees, which does not allow the use of Base64 encoding for transferring binary files.

This adds createBlob() and createTreeWithBlob() methods to support creating a blob using Base64 encoding and adding it to a tree.