Using on-line and off-line instead of online & offline
locateResource fix and refactor
Checking resource can be running in multiple nodes when moving it
Fixed regression after changing resource node index by name
Added defensive code to avoid using undef when hashrefs expected

 * Also removed unused sub
Fixed condition to move one resource from a node to a different one
Merge pull request #1020 from Zentyal/figarocorso/ha-refactor-fixes

Figarocorso/ha refactor fixes