Split shared code to helper function

(cherry picked from commit e308021396b3142e003d8c14a5ec911075207840)
Handle clusters in core of crowbar

We have a runtime dependency on the pacemaker barclamp here. If it's not
available, then we simply won't support clusters at all. If it's
available, we will use it to resolve clusters.

(cherry picked from commit 06d21aa60ae30f4f1f9d1c624a256bcf3996b46c)
Add helpers to get hostnames for OpenStack endpoints

This is common code that all barclamps need, so a helper is a good
thing.

(cherry picked from commit 7ee28dda3e4d6a2f72df09a93928746ee34e9ea6)
Integrated cluster selection into node selector

(cherry picked from commit e9c50efb74e48a93ab6b64c79076a930994ed8e3)
Understand cluster in template that we don't use

Just so we can say we've covered everything :-)

(cherry picked from commit 8d9a43a1d07c83c11f0a27e4d52c65e7af450e69)
Update after method moved in barclamp-pacemaker

(cherry picked from commit fd11e94006799b2380ce796b705a9537fe7e8f8f)
make random_password securely random

(cherry picked from commit 27e18332d1b7bf900b8f99907927e4e577447552)
Use SecureRandom.base64

(cherry picked from commit d965a60dc72b052da8624f4b86e35fc409fa49b5)
Merge pull request #986 from vuntz/secure-password

[stoney] make random_password securely random
NodeList triggers add/remove node events

Whenever a node is allocated to a role, or removed from it, the NodeList
triggers an appropriate event, passing along the role name, node id and
the node alias. This way, other UI components can listen and react to
these events.

Example usage would be:

$('#element').on('nodeListNodeUnallocated', function(evt, data) {
  // do stuff here
});
(cherry picked from commit efb164d25620968b15b9f766e5beb1701ab30bac)
revert: valid -> revert: invalid

This is to make the drag & drop more intuitive.
(cherry picked from commit 102bd9c975e43f58b349cc3b64f78eeb7cc58457)
Merge pull request #987 from bkutil/nodelist_events

Nodelist events
Fixed raid claiming part

Replaced a wrong next with a simple return as
we are not within the loop anymore.

(cherry picked from commit fdfc1405fe382192d545d3685ca63a6ce511fe3f)
Merge pull request #990 from tboerger/feature/stoney/raid-claim-fix

[stoney] Fixed raid claiming part
Fix hostname for virtual IP in admin network

It should not be prefixed with "admin.".

(cherry picked from commit 6ea82bf1fd6fca5bd0479a8068919c71b0c79a93)
Merge pull request #983 from vuntz/stoney-ha

Sync with roxy wrt HA integration code