Port: Add PagedBytes, DataInput, DataOutput

Also ported IndexInput, IndexOutput