BZ1032192 - AlertCondition composite queries, query each column

Hibernate would return an empty entity and consequently lead to N+1 selects.

The code is ugly, unfortunately.

Adding tests for these queries
BZ1032192 - AlertCondition intentional API changes

Adding intentional API changes as well
 [BZ 1124614] a few extra changes still needed.
  - reset serialization id so we don't break serialization with existing agents.
  - update agent Version -> agent Build usages.
  - update i18n doc and key as well for Buld vs. Version
  - fix small npe issue during failure conditions.
 [BZ 1084890] modify CLI and Agent text to reflect update information if available.
Removing the dotted outline from the content of mashup portlet.
[BZ 1112240] Remove pidfile detection from rhqctl and use rhq-agent-wrapper.sh / rhq-server.sh to do the logic of shutting down if necessary
[BZ 1125972] - JON 3.3 Administration/Affinity Groups page is incorrect. Button is missing to create new affinity group - Using utility method for replacing spaces and other forbidden characters in smart gwt id field for UI components.
[BZ 1128276] - Custom time range, if set with invalid wrong range, cannot set back - Adding a client side validation in web UI
BZ1073093 Alert template query does not scale well

With a high number of alert definitions, the count query does not scale well.

Adding index for resource_type_id
Fix output when updating storage schema
bump schema version
Bug 1074633 - RFE: Manage storage node snapshots

Improve UX - disable several fields in Cluster Settings based on other
field's selection when not relevant.
[BZ 1129051] - Long alert definition templates list is displayed partially - calling setPagingInfo(response, result); solves the issue. I've fixed that for various data sources.
[BZ 1129091] Upgrade the bundled MySQL JDBC driver to a newer version.
[BZ 1117829] Add quotes around necessary tableNames and columnNames to force case-sensitivity on PostgreSQL
[BZ 1117830] Parse nullable from NULLABLE instead of IS_NULLABLE
[BZ 1126923] - upload bundle recipe button does not work for first time - doing the same changes as introduced in commit 132e2f1f0fa5d31 for component TextFileRetrieverForm.
[BZ 1031980] - typo in server settings "GUI Session Timeout" description - typo fixed
[BZ 1095970] Reapplying patch to fix incorrect sequence name
[BZ 1069547] Limit the choice of resource groups and destinations
based on the bundle type.