FSM managing the init and usage of rabbitmq via the node.js amqp module