Use PacemakerServiceObject.cluster_vhostname_from_element

We shouldn't compute the hostname of haproxy ourselves, so instead use
the new helpe for this. This will also fix a bug where we need to
substitute _ with -.
Use helper from database cookbook to get database IP address

This way we're ready for when HA will be used for database.
Fix regression with memcache possibly listening on wrong address

With the HA support in commit a541099b, we lost the code ensuring that
memcache only listens where it should (when HA is used; it kept working
fine for non-HA).
Merge pull request #141 from vuntz/cluster-hostname

Fix hostname of cluster to use - instead of _
Merge pull request #142 from vuntz/db-ha

Use helper from database cookbook to get database IP address
Merge pull request #143 from vuntz/memcache-listen

Fix regression with memcache possibly listening on wrong address
Use the same password for proposal and role on migration

We use a class variable for this.

Also note that there's no need to remove password from node attributes
as they are in a wrong namespace there anyway, so won't conflict.
Use new synchronization helpers to avoid races when deploying with HA

There are a number of possible races when deploying horizon for the
first time:

 - when creating of the database / database user

Ideally, we would also do that for the db sync, but it's not possible
because this happens in a notification. It should be fine, though, as
the first sync for the database should give enough advance time to the
cluster founder to avoid an issue there.
Merge pull request #145 from vuntz/improve-db-migration

Use the same password for proposal and role on migration
Merge pull request #146 from vuntz/sync-marks

Use new synchronization helpers to avoid races when deploying with HA
Actually set the caching key prefix

This was accidentally missing in a rebase of
https://github.com/crowbar/barclamp-nova_dashboard/pull/121

(cherry picked from commit cd434536e1bab217bdcc95cf78e789de7580b472)
Syntax error

(cherry picked from commit 655cb21daf343066bdaccabaa2f000473a691aab)
Merge pull request #148 from dirkmueller/release/stoney/master

Syntax error
Merge pull request #147 from dirkmueller/release/roxy/master

Actually set the caching key prefix
Add pacemaker resource to monitor apache for horizon
Merge pull request #149 from vuntz/ocf

Add pacemaker resource to monitor apache for horizon
Cisco ml2 driver is not compatible with n1kv panel

If the ml2 cisco driver is in use, the n1kv panel for horizon should
not be activated
Merge pull request #134 from rossella/release/roxy/master

Cisco ml2 driver is not compatible with n1kv panel
ha: Follow convention for pacemaker resource naming
Merge pull request #150 from vuntz/ha-convention

Update pacemaker resource names + other conventions for HA