[BZ 955816] Ask server for last known metric val if not known otherwise.
[BZ 1136996] Support resource upgrade callback during resource upgrade.
[BZ 1135034][BZ 1135107] Disallow patching on unsupported EAP versions.

This is done on 2 fronts. First, there's a new "supportsPatching"
attribute in the plugin config of standalone and host controller to tell
whether the resource explicitly supports patching or not. This is to
support servers that don't support patching even though the patch
command is available.

As a second "wave", the bundle handler checks for availability of the
patch command before trying to perform a patch operation and returns
a meaningful error message if it fails to find it.
This is to support graceful failure on servers that somehow fail to
report whether they support patching correctly.
[BZ 1135629,1135603] add metrics_idx table and remove cache tables

This is a big commit that involves a lot of clean up due to the removal of the
metrics_cache and metrics_cache_index tables. This commit also includes a lot
of work updating the aggregation code to use the new metrics_idx table. All of
the tests in AggregationTests.java pass with this commit as well.
[BZ 1135629,1135603] remove CacheAggregator and more clean up

BaseAggregator has been renamed to DataAggregator. The remaining functionality
that is needed has been moved up into DataAggregator. PastDataAggregator still
inherits from it.
[BZ 1135629] add paging for index queries

This is the initial commit for IndexIterator. It encapsulates the logic for
paging with index queries. It also takes care of going through all partitions
in the index for a given date range.
[BZ 1135629] first step in using a configurable number of index partitions

This commit has a lot of changes to support multiple partitions per time slice
in metrics_idx. Prior to this commit, the parttion column was being hard coded.
The next step is to make it configurable through the rhq server measurement
subsystem resource configuration.
[BZ 1135629] fix merege conflicts after rebase
[BZ 1135629] add support for upgrading from RHQ 4.11 index

This commit adds a schema upgrade step for migrating from the metrics_index
table which was used up through RHQ 4.11. I have added some automated tests
with ReplaceIndexTest.java. Support for upgrading from RHQ 4.12 which
introduced the metrics_cache_index table will come in a subsequent commit.

I also added a skip attribute to the <step> element in the schema update files.
If a user is migrating from 4.9, 4.10, or 4.11, it wouldn't make a whole lot of
sense to migrate data from metrics_index to metrics_cache_index and then to
the new metrics_idx table. This functionality allows going directly from
metrics_index to metrics_idx.
[BZ 1135629] and test for replace index in RHQ 4.12
[BZ 1135629] do not load the full index into memory during data aggregation

This commit also includes some clean up, removing more unused classes and
adding some javadocs.
[BZ 1136996] Call the update lock of disc. callbacks a better name.
[BZ 1135034] Only fill the upgrade report when needed to reduce traffic.
Merge branch 'bug/1136996+1135034+1135107' of github.com:metlos/rhq into metlos-bug/1136996+1135034+1135107

Conflicts:
	modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/PatchHandlerComponent.java
[BZ 955816] Don't update the cache with the retrieved value

This could lead to concurrent update exceptions and is not worth
dealing with in some async manner given this is an edge case.
Bug 1134829 - Listing two times each case details under 'Red Hat
Access->Support->My Cases'

updating redhat_access_angular-ui component (to 0.9.15#bc813f7)
[BZ 955816] Added API difference record to client-api.
Bug 1139607 - EAP cli script fails always during bundle deployment to domain server

#executeCliScript should be called with an absolute File reference.

Side work:
* convert script File reference to absolute when the execute-script command is executed
* log results of handed-over script's execution
* some code cleanup
Merge pull request #116 from metlos/bug/955816

[BZ 955816] Ask server for last known trait val if not known otherwise.
BZ 1088032 - use "command" not "type" since "command" is POSIX compliant and is available on Solaris as well as other UNIX flavors. Don't use readlink unless we know it is available, to avoid spitting out those error messages.
Tested on Solaris 10 ("uname -sr" returns "SunOS 5.10") and readlink does not exist, but "command -v" works so this fix should work on Solaris 10.