Implement 'export': this writes the volume metadata to a file

Signed-off-by: David Scott <dave.scott@eu.citrix.com>