Add option to exclude drafts when triggering on patchset created event.

Gerrit support draft changes and draft patchsets. Gerrit Trigger was able
to trigger a build when a draft change is published (transitioned from draft to
regular change) but it was missing an option to allow user to exclude draft
patchsets when triggering on patchset created event.

This change add a checkbox in the patchset created type of trigger to exclude
draft patchsets. By default, this option is not enabled to be compatible with behaviour
prior to this change.

Change-Id: I279a34662a46c6aa9657b2b604027b0e52f76adc
Merge pull request #153 from hugares/excludeDrafts

Add option to exclude drafts when triggering on patchset created event.
Permit the setting of Build Schedule Delay to "0".

Delay not needed with Replication Events. Also fixed dependent projects
feature to no longer rely on this default 3 seconds delay. [FIXED JENKINS-22812]

Change-Id: Ic11f0fb7b9e43e95ae7dec71c30fe1e6fab1e8ac
Copy REST API setting

when create new server by copying existing ones, REST API settings are
not copied.

This patch can copy REST API settings.

As a side note, Secret.fromString() calls Jenkins instance to use
confidencial key. So ConfigTest have to use it.

Fix for JENKINS-23189
Merge pull request #143 from scoheb/permit-no-delay

Permit the setting of Build Schedule Delay to "0". Delay not needed with Replication Events
Merge pull request #156 from rinrinne/copy-restapi-config

Copy REST API setting
Store encrypted password

Now password for SSH authentication file is stored as plain text.

This patch fixes it. Already stored password would be replaced to
encrypted ones if config is saved once.

Fix for JENKINS-23165
Fix tests depends on Config class

To use Config class, jenkins instance is needed.

And add PowerMockIgnore annotation to prevent ClassCastException.
Merge pull request #157 from rinrinne/encrypt-pw

Store encrypted password
Prevent to send plaintext password to browser

Fix for JENKINS-23165 and pull #157
Prevent to send plain HTTP password to browser
Merge pull request #158 from rinrinne/pw-on-browser

Prevent to send plaintext password to browser
Add a custom parameter value for Base64 encoded string

Fix for JENKINS-23421
tore encoded GERRIT_CHANGE_COMMIT_MESSAGE into custom parameter type

Fix for JENKINS-23421
Fix test
Merge pull request #160 from rinrinne/custom-parameter-value

Add custom parameter type for Base64 encoded value
Update to filter ChangeKind in PatchsetCreatedEvents

ChangeKind is now exposed by Gerrit, which gives Jenkins the ability
to filter for changes that are trivial rebases or changes that do not
impact code.
Merge pull request #159 from vangdfang/master

Update to filter ChangeKind in PatchsetCreatedEvents
Removed delayed approval feature JENKINS-11409

It is a bit too risky to have enabled in large installations
and the dependency feature provides a similar functionality.
Since delayed approval has so far only been in a beta release
we can remove it without much consequence.

Change-Id: I2cf2efc7b1f45be7db3ae69dde6cb8cdc88b405f
[maven-release-plugin] prepare release gerrit-trigger-2.12.0-beta-3