add a simple debug message system

We may want to add debug messages at many points. We can add them as we
find we need them - i.e. when debugging stuff with users.