Add compression + add default param in deserialize()

Add LZ4 compression to (de)compress msgs.

Add default param 'erase' in functions deserialize(). true by default. If false, the deserialize function does not remove the elements from the bytes (just read)