BZ 1068816 - More remote methods for managing agent and server plugins, metrics

Exposing mostly methods already available as part of the Local interface.

Not sure if the List<Integer> methods should be exposed, as it is a hassle to use via JavaScript,
but it is possible to use these methods anyway.
[1070326] RFE: Allow AS7 deployments to provide version in the artifact name
After feedback, remove 'version' as a "generic" property, affected by the
setting of SystemSetting.ALLOW_RESOURCE_GENERIC_PROPERTIES_UPGRADE.
Merge pull request #44 from genman/genman/moreremote

BZ 1068816 - More remote methods for managing agent and server plugins, metrics
Update custom plugin sample following latest changes in
rhq-agent-plugin-plugin

See Upload mojo: RHQ4.12 allows to wait for plugin scan and plugins
update on all agents
https://github.com/rhq-project/rhq-agent-plugin-plugin/issues/16
[BZ 1068816] - Forgot to add an API change record for the newly exposed
method.
[BZ 1078510] - Make sure to use the "plain" pagination on "plain" jsf pages

This avoids the warning arising from the "non-plain" pagination trying to
access page elements not present on the plain pages.
Add some more <Help> text to the AS7 plugin for the new Versioned Deployment
and Missing resource policy features.
[BZ 1104581] Tomcat configured to use SSL is discovered as Tomcat(null) in JBoss ON.
Bug 1033130 - [AS7] Exception during discovery of Query Cache resources of RHQ Server resource

Instead of importing tons of Query Cache resources, AS7 plugin will mimic Hibernate Plugin's behavior and expose a "viewQueries" operation to gather the Query Cache nodes statistics.

Added HibernatePersistenceUnitComponent to implement "viewQueries" operation. The operation processes Query Cache nodes in batches to avoid sending too many queries to the management interface
Deleted the never used QueryCacheDiscovery class (updated API check file accordingly)
Removed the commented-out Query Cache service in AS7 plugin descriptor and added the "viewQueries" operation on the Hibernate Persistence Unit service
Added itest for the "viewQueries" operation
Merge pull request #53 from jfclere/master

[BZ 1104581] Tomcat configured to use SSL is discovered as Tomcat(null) ...
[1094540] Agents get permanently backfilled if backend database goes offline for a moment
Clean up some of the live availability doco/workflow:
- Fix the jdoc for DiscoveryAgentService.getCurrentAvailability() to reflect reality
- Fix ResourceManagerBean.getLiveResourceAvailability() to mark its avail report
  as a "ServerSideReport".  This prevents it from interfering with server-agent
  backfill coordination.  Also, correct some confusing inline doco and doe some cleanup.
- Fix AvailabilityManagerBean.mergeAvailabilityReport() such that logic checking for the
  backfill flag does not execute *after* the backfill flag has been reset. And clean up
  the overall logic a bit more.
- Improve jdoc for AvailabilityManagerLocal.updateLastAvailabilityReportInNewTransaction
  to clearly indicate its side-effect of clearing the backfill flag.
Bug 1109080 - Re-schedule operation fails if example schedule was run before an operation definition change in plugin descriptor

Check if example parameters are null or pass validation.
Show warning message otherwise
BZ 1068816 - fix remote client to support remote plugin API
[BZ 1078437] Correct the navigation in content subsystem JSF pages

The /portal prefix is only valid in the <redirect/> navigation cases
because in those cases it is represented literally as the URL to go to.

In all other cases it is a logical name that wasn't affected by the move of
the JSF UI to the /portal context root.
[BZ 738826] Start/Stop/Restart operation should support RPM System V init script with different service names.
[BZ 1068816] ServerPlugins -> ServerPluginManager to have consistent names
[1110434] Remote AlertDefinitionManager API does not handle template or group level definitions correctly
- Repair the AlertDefinitionManagerRemote API such that enable/disable/remove
  methods operate on any combination of template,group or resource level
  alert definitions.
- Properly jdoc the remote API methods, and improve some locals jdoc as well
- Improve the transactioning to avoid a single umbrella transaction when
  invoking the API on multiple group and/or template alert definitions.
- Convert GUI to use the enhanced remote API methods to benefit from
  the transactioning improvments and to shrink the generated Async API.
- Improve i-test to use remote api and ensure child, resource-level
  alert defs are being handled properly.

Also:
- fix a problem with authz on alert template viewing. It should not
  require MANAGE_SETTINGS to view alert defs via  getAlertDefinitionById().
- fix a long-standing bug where child alert-defs of templates or groups were
  not properly detached at remove-time of the parent, which could cause
  GUI failures when visiting the resource-level alert definitions.
- remove some unused named queries from AlertDefinition
Remove charts-4.11.css from CoreGUI.html as charts-4.12.0.css is already included.
[1110905] Agent auto update fails on windows
Add a longer pause on windows between stopping the legacy agent and
starting the update.  On Windows the wrapper must terminate and windows
must release file locks, this seems to account for some significant
extra time needed.
Add intentional API changes