Delay connection until Jenkins completes to load all items.

Configured gerrit triggered job cannot take any gerrit events until
it is loaded to Jenkins. So stream-events connection should be delayed
until Jenkins completes to load all items.
Nullpointer when project cant be resloved

When getting Gerrit parameters the project is needed to sort
out if Name/Email should be fetched or if escapeQoutas is needed.

But if the project doesn't exist when triggered manually a
nullpointer is thrown.

Added nullpointer check and default values if project is missing.
Added method setOrCreateParametes without parameter project

Change-Id: I72fc2812073772024d837d392b09e34bf041aac9
Merge pull request #58 from rinrinne/delay-connection

Delay connection until Jenkins completes to load all items.
Removed flaky test

The scenario for the test is no longer valid.
Merge branch 'i'
[maven-release-plugin] prepare release gerrit-trigger-2.10.1
[maven-release-plugin] prepare for next development iteration
Update build-config dependency versions
Decoupled connection from handler

Now GerritHandler handles gerrit event and gerrit connection.
Even if you want to use event handle feature only, actual connection
is always needed.
To decrease network dependency, This patch isolates connection
features from GerritHandler.

In addition, the below features are provided by this patch.

* Enable to change nr. of workthreads during connection
* Refactor some parameters
* Use Executor instead of worker
Fix shutdown process
Fix and add tests
Decoupled connection from handler

Now GerritHandler handles gerrit event and gerrit connection.
Even if you want to use event handle feature only, actual connection
is always needed.
To decrease network dependency, This patch isolates connection
features from GerritHandler.

In addition, the below features are provided by this patch.

* Enable to change nr. of workthreads during connection
* Refactor some parameters
* Use Executor instead of worker
Add extension point to receive gerrit events from external.

Other plugin can get the instance of this extension then post gerrit
event stream or JSONObject. In addition, the listener for this receiver
is added to avoid searching instance many times.
Fix remained merge confliction

* Fix duplicated methods
* Fix checkstyle related issues
Merge branch 'decoupled-handler' of https://github.com/rinrinne/gerrit-trigger-plugin into decoupled-handler

Conflicts:
	gerrit-events/src/main/java/com/sonyericsson/hudson/plugins/gerrit/gerritevents/GerritHandler.java
	gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/PluginImpl.java
	gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/extension/GerritEventReceiver.java
	gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/extension/GerritEventReceiverListener.java
	gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritItemListener.java