Virtualize backup(length) and remaining() in Encoder interface.
Virtualize backup(length) and remaining() in Encoder interface.

These are top level concepts implemented by both data and file encoders.

Review: https://reviews.apache.org/r/27963

kaysoky/mesos,craimbert/mesos,dforsyth/mesos,neilconway/mesos,Gilbert88/mesos,dforsyth/mesos,verizonlabs/mesos,zmalik/mesos,kaysoky/mesos,abudnik/mesos,andschwa/mesos,andschwa/mesos,dforsyth/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,andschwa/mesos,reneploetz/mesos,asamerh4/mesos,andschwa/mesos,jpeach/mesos,craimbert/mesos,reneploetz/mesos,reneploetz/mesos,Gilbert88/mesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,zmalik/mesos,verizonlabs/mesos,craimbert/mesos,zmalik/mesos,verizonlabs/mesos,craimbert/mesos,dforsyth/mesos,neilconway/mesos,andschwa/mesos,asamerh4/mesos,jpeach/mesos,craimbert/mesos,chhsia0/mesos,craimbert/mesos,asamerh4/mesos,kaysoky/mesos,kaysoky/mesos,abudnik/mesos,asamerh4/mesos,reneploetz/mesos,reneploetz/mesos,abudnik/mesos,verizonlabs/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,abudnik/mesos,gsantovena/mesos,gsantovena/mesos,dforsyth/mesos,reneploetz/mesos,Gilbert88/mesos,jpeach/mesos,Gilbert88/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,asamerh4/mesos,craimbert/mesos,abudnik/mesos,abudnik/mesos,reneploetz/mesos,neilconway/mesos,gsantovena/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,neilconway/mesos,yuquanshan/customizedMesos,gsantovena/mesos,kaysoky/mesos,dforsyth/mesos,andschwa/mesos,zmalik/mesos,dforsyth/mesos,jpeach/mesos,jpeach/mesos,asamerh4/mesos,andschwa/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,Gilbert88/mesos,jpeach/mesos,zmalik/mesos,Gilbert88/mesos,verizonlabs/mesos,zmalik/mesos,verizonlabs/mesos,zmalik/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,gsantovena/mesos,jpeach/mesos,chhsia0/mesos,chhsia0/mesos,yuquanshan/customizedMesos,kaysoky/mesos,gsantovena/mesos,yuquanshan/customizedMesos,chhsia0/mesos,chhsia0/mesos,neilconway/mesos,chhsia0/mesos,kaysoky/mesos,gsantovena/mesos