QPID-DISPATCH-16: Don't evalaute qd_log() arguments unless the log message is enabled.

git-svn-id: https://svn.apache.org/repos/asf/qpid/dispatch/trunk@1594586 13f79535-47bb-0310-9956-ffa450edef68
QPID-DISPATCH-16: Added per-message logging for messages sent/received by the router.

git-svn-id: https://svn.apache.org/repos/asf/qpid/dispatch/trunk@1594587 13f79535-47bb-0310-9956-ffa450edef68
QPID-DISPATCH-52: Automated system test of dispatch sending messages through a broker queue.

Using waypoints, the test sends a message into dispatch, out to a broker queue,
back to dispatch fromt the queue and delivers to a dispatch subscriber.

Gotchas:
- broker and broker queue must be set up before starting dispatch.
- must wait for dispatch to connect to the broker before sending message.

Improvements:
- system_tests.TestCase.get_port: check if port is used before returning it.
- Qdrouter.is_connected: test if router has a connection using management info.
- additional logging in waypoint.c
- fixed test/config_build.sh env to find qdstat

git-svn-id: https://svn.apache.org/repos/asf/qpid/dispatch/trunk@1594588 13f79535-47bb-0310-9956-ffa450edef68