Add support to pause/unpause queues.

@dlecocq -- care to review this?