Fix string escaping which was previously not done correctly.
Switch from hex to base64 for blob
Add the beginnings of a unit test for writing blobs
Merge pull request #7 from ari/master

merging changes from ari's repo.