Complete wrappers around thin_dump and thin_restore

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