Gzipped sessions (Take 2)

See pr #52 for take 1

read/write should not support 64-bit size_t. write also should return 0 when gzwrite returns -1 at some point