Cleanup/simplify compress_blob function
Cleanup/simplify compress_blob function

 - Use appropriate coding style
 - Don't impose arbitrary limits on buffer sizes, let the
   compressor consume as much as it likes
 - Use tl_iostream wrapper functions instead of hundreds of casts

Signed-off-by: David Oberhollenzer <ef97309e490485c1bad5018f0617d7fa37bc07ac@tele2.at>

AgentD/ctools,AgentD/ctools,AgentD/ctools