AMQP test helper

This replaces `self._amqp` and all the worker creation/cleanup machinery in the various test classes with composable helpers.

Application, transport and dispatcher tests each get their own wrapper around this for functionality specific to that those kinds of workers.