Wait for rabbitmq to respond to commands

Sometimes rabbitmq service starts but rabbitmq
server is not ready to accept requests. This
commit adds wait loop for rabbitmq and then
allows rabbitmq_* resources to work with
rabbitmq server.

Change-Id: Ic01773a4f84bbc1fa1a4139a0a6eb366191a8b9b
Closes-bug: #1377491