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