Use attribute from rabbitmq node to get rabbitmq IP address

The rabbitmq cookbook saves the IP address used by rabbitmq to listen,
so no need to do some fancy thing to get it.
Use helper from database cookbook to get database IP address

This way we're ready for when HA will be used for database.
Merge pull request #197 from vuntz/db-ha

Get ready for HA in database and rabbitmq