cli: auto-detect metadata file or block device

If it's a file, assume it's in XML format already.
If it's a block device, assume it's in the binary encoding and
  use Thin.dump.

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