Rewrite rabbit init scripts

This scripts are takes from packages and retry loops
are added. When booted nodes will wait for the primary
node goes up and then will connect to the cluster.

Closes-bug: 1308455
Change-Id: I6748577e71c0e2be10a9298b9691c335e5be45c5
Merge "Rewrite rabbit init scripts"