Use java serialization mechanism for btree refs
Merge pull request #12 from kduborenko/feature/btree-ref-serialization

Use java serialization mechanism for btree refs