Dispatch unix signals for consumer commands

Dispatch unix signals (TERM, INT, HUP) for consumer commands and finish work of command only after proccessing of AMQP message was finished.

Refactoring of consumer and anon consumer command.