Fix rabbitmq code

Also rabbitmq server must already be running, so we start it from
__main__.