Bunch of refactor.

Move checksum/import/export into volume.
Added ensure_readonly to lock down frozen stuff.