Fix checking if resource is running and on which nodes

* is_resource_started:
  * Look for master resource on all nodes (previously only on first)
  * Added support for allowed and banned nodes
  * Return on which nodes the resource is running even on failure
* resource_running_on:
  * Added ability to check clone, master and group
* both:
  * Refer to correct resource in messages when checking non-primitive
    resource
Add ability to wait for resource move/ban to finish
Fix waiting for resources to start/stop

* Wait for all instances to stop (previously first stopped instance was
  triggering success even if other instances were still running)
* Improved operation failures processing allowed failures reporting
Add ability to wait for 'pcs resource group add' to finish