Http buffering agent

Switch agent to use HTTP buffered over some interval, add gzip outgoing support.