[1136090] Resource selector may choose resources from other plugins than the selected one
After discussing with Thomas (the BZ owner) we decided the best approach
was to layer this fix on a new Criteria feature.  This commit adds:

 Criteria.setStrictFilters(String... filters);
 Criteria.setCaseSensitiveFilters(String... filters);

These now allow for some string-filters to be strict while others are fuzzy,
and similarly, some case-sensitive and some case-insensitve, in the same
Criteria fetch.

Fixed ResourceSelector

Added convenience method in ResourceCriteria
Made CriteriaQueryGenerator#prepareStringBindValue a bit easier to read
[1127926] warning in rhq-storage-wrapper.log
Fix the heap dump dir support for the storage service. This is a Windows
only fix.  Note that this fix only executes at storage install time
or at resource config update.  For existing windows storage nodes the
resource config property for the heap dump dir must be updated
to a *new* value.  To maintain the existing directory, change it and then
change it back.
[BZ 1049054] refactor metrics migration test

There was a big in MigrateAggregateMetricsTest that I introduced in a previous
commit that actually caused the migrtion step to get skipped. I took the
opporuntity to do some refactoring to make it a little easier to write schema
update tests. I have introduced UpdateFolderFactory which is repsonsible for
creating the UpdateFolder objects. UpdateFolderFactory can be subclassed such
that tests have full control over what steps are actually executed. I have also
added some minimal verification to MigrateAggregateMetricsTest.
[BZ 1049054] fix baseline tests and clean up baseline calculation code

Some of the baseline calculation code in MetricsBaselineCalculator needed to
be updated due to my recent changes. The schema changes allowed the code to be
simplified some as well.
[BZ 1049054] clean up/remove commented out, obsolete code