Simplified JavBufferRef api. Added JavBufferPool. Wrote unit tests for those classes.