Merge pull request #2 from whyrusleeping/master

add in ability to use pools for allocation
better usage of buffer pool allocations