Services listen on another port when HA is enabled

When the HA proxy runs in front of the glance services (API and
registry), make sure that they bind to a different port.

In the config file templates of these services, the ports were set from
a config hash, so refactor this and pass the port as a template
variable from the recipes.

Also fix configs for scrubber and cache, as these use the registry
bind/port too.
Add HA recipe

If HA is enabled, this recipe sets up a load balancing for glance
services (registry + api).

The recipe basically just asks for the ip/ports of other servers that
should be behind HA and can be failed over to and sets up load balancing
on the current node.
Setup HA and VIP networks in crowbar framework

Check if HA should be enabled. Currently, that means that there are
clusters defined for a given role, i.e. that list of role elements
expands to a differing list of nodes.

Based on that, mark the role as using HA. Then set up virtual IP network
for each cluster and make sure the DNS is configured, as the setup
recipe in the glance cookbook needs to resolve virtual IPs in the cluster.
Add dependency on pacemaker to cookbook metadata
Centralize network settings

To make configuring / fiddling with network settings easier, centralize
them into a helper method, returning a hash w/ API + registry network
configuration.
Enable cluster mode in role constraints
Set database password from crowbar, not cookbook

It turns out that we didn't have attributes for the database known to
crowbar, so we need to add them.

One bit worth mentioning: the db name was hard-coded to "glancedb"
before, so we keep it on migration.
Merge pull request #1 from vuntz/ha

Set database password from crowbar, not cookbook
cluster_vhostname moved to CrowbarPacemakerHelper
Make HA port attributes integer, not strings
Get correct endpoints when HA is enabled
Stop settings attributes we don't need anymore

We only need node[:glance][:api][:bind_host] and
node[:glance][:registry][:bind_host] for the nagios monitoring, so just
get the right values directly there.
Merge pull request #2 from vuntz/ha

Fix HA branch
Merge pull request #189 from bkutil/ha

HA support for glance
Merge branch 'release/roxy/master' into roxy-sync
Merge pull request #196 from vuntz/roxy-sync

Merge roxy branch into stoney