CP-8378: Infer image format from disk layout for VM.resume

The resume interface can remain unaltered since the format of the suspend image
can be infered as legacy if it contains a filesystem. Otherwise it is deemed to
be the current format.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>