Fix ZLib compression
Fix upload bandwidth counter
Few other small fixes
More code cleanup
Add conditions to not compress data when it's is too small and it's same as last time
Remove cutting of user outgoing buffer when too big