Batch of fixes 20141231

The last commit is dependent on some of the former so I'm batching all these together. I added detailed descriptions to each commit to make review easier.

Two of the more significant issues fixed include binary string truncation and blob support.