add pause/resume functionality to consumer

Adds pause/resume functionality to consumer. This is a straight port of functionality from HighLevelConsumer.