Fix compiler warnings
Add buffering of request / responses; Fix up memory leaks
Merge pull request #1 from reagent/buffer

Adds buffer library & fixes some memory leaks