add lz4 in memory compress
add nested serialization
fix http buffer flush