Imported hex string<->binary conversion functions from MediaTomb
Added new error code (libtoxcore API change)
Added validation for buddy id string input
Add some checks before loading/saving messenger blobs