Wait for pending messages when pausing consumers.
Better way to manage notify_paused_and_quiet list.
Merge branch 'feature/issue-616-pause-consumers-waits-for-pending-messages' into develop