Allow setting rabbitmq url via env var
Fix main entry point