Add support for MySQL binary types

Hi,

This isn't really tested yet (importing the blockchain for now...) but I thought I'd share it early anyway. Let me know if you have any comments.

I'll report on success/failure when it's done... BTW I'm using the 0.8 client and surprisingly it works so far (I have fairly recent v0.7 DB if needed anyway).

Thanks