add block.js and tests
bufferutils: add varIntBuffer