Rule expression support

This pull request contains a number of patches, mostly related to supporting rules in attribute lists:

http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html