redesigned writer
moved writer code on top
renamed writer package to cbs
refactored writer

- Added Flush() method to Writer interface
- removed block-related code to block.go
added block.go
import fixes
added writer_test.go (contains benchmark)
Merge branch 'develop'