Add better error checking

Make sure that when we ask for configuration, we get a configuration
reply, etc. This also adds propagation of errors from handle_foo() functions
to wacom_send_and_wait().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>