Add a configure script, make device mapper and tests optional

If we have kaputt installed, we can run the full testsuite.
If we have camldm installed, we can build the device mapper interface.

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