feat(bundle): implement and demo block dedup

Dedup is done by copying needed blocks into another bundle, and
upload the bundle when it's full.