Add blob support

This adds support for BLOBs by rewriting quite a bit of code to avoid converting binary data to UTF8 strings. It also improves the EditDialog by adding some proper editor for showing and changing binary data.

Have fun with it :)