BZ_1080171 - defer adding of "WHERE" keyword until we know that it is needed.
[BZ 1070243] - (JON3-31) Add "Recent Events" portlet into JON
Dashboard

To make the filtering (based on resource name) working, I had to add also
 the new method to the EventCriteria class.

To sum it up, it is possible to filter by:
 * time ("from, to" or "last n mins/hours/days")
 * resource name - only for global Recent Alerts portlet; it accepts also a substring of a name
 * event source path - it accepts also a substring of a path
 * severity (almost the same as alert priority filtering)
 * result counts (5 is default)

Having that said, the performance shouldn't be an issue, because the
filters may be set to fetch only a few records.
Updated checks after comments from @metlos.
Merge pull request #17 from pilhuhn/bz1080171

BZ_1080171 - defer adding of "WHERE" keyword until we know that it is needed.
Since the Hibernate4 standard dialect resolver does not recognize
Oracle 12, we need to ensure the hibernate.dialect system property
is set when running the i-tests.
[BZ 1081554] - Cannot load metrics error on a resource with no enabled metrics - Not performing the problematic DB query, when no metric on the resource is enabled. Also saving 2 (client-server)) round trips if the enabled metrics # equals to zero.
To support oracle 12c, updating the default driver version. It should be backward
compatible to our earlier, supported releases.