Implement binary-blob support.

Many small fixes on the way.