configure: added LOOM_DEBUG define

If debug is enabled define LOOM_DEBUG.
For debugging purpose use session message bus instead of system message bus.