move data to common
use Sector in erasure
update client for new encoding API
use []byte in place of string