Better wording in the verified command help texts

Change-Id: I74b4a061bb8ae01600a8f74c5d12a2afcbc58329
Replace deprecated `gerrit approve` with `gerrit review`

The `approve` command is deprecated since Gerrit version 2.1.3.

Replace it with `review` throughout the code.

Change-Id: Iada958c16f630fb171459bc38214984e398c65a6
Fix indentation in help files

Indent with spaces rather than tabs.  Use correct indentation levels.

Change-Id: If97d4a2255e757cdbf9e72c8894e872fb99e6ab3
New option to check changes from Gerrit and trigger missed patchset created events.
Bug fix: Support to use silentMode with check missed patches property.
Refactored check missed patches property.

Fetches only once every needed project from Gerrit server.
Rename constants for better readability and consistency

The constants `PROTO` and `GERRIT_PROTO` are renamed to `SCHEME` and
`GERRIT_SCHEME`.  This makes the naming of all the provider constants
consistent with RFC3986 [1].

The `proto` field is replaced with `scheme`.  The methods to get and
set `proto` are deprecated and new methods to get/set `scheme` are
added.

JSON parsing is modified to use `proto` if it exists, or otherwise
use `scheme`.

[1] http://tools.ietf.org/html/rfc3986

Change-Id: I38890355daa5d614e6b43fd351b199ed4f9e83c1
Fix grammar in help descriptions of Gerrit provider fields

Change-Id: I7a44a842e32a6bcccc81b829abd6d1b1a7afeedb
Add missing event types in description of change events

Change-Id: Ie066e281c7c20a432616c0668d076e18254df25d
Fix NPE for StreamWatchdog

The instance of StreamWatchdog should be discarded once calling
shutdown. If call twice, NPE is raised.

This patch prevents it.
Fix comments
Fix shutdown process

shutdownInProgress is flag. It is accessed from more than 2 threads.
When read this, it has possibility not to be able to get the latest
value which was written by other threads. This is caused by Java memory
model.

To avoid this, shutdownInProgress should be declared as volatile
variable. Then all threads can read/write value to it synchronously.

As a result, brute force related code and synchronized object can be
discarded.

For keeping secure, setter for this flag is changed to no parameters.
Remove connecting flag

Now "connecting" has been used to determine whether disconnect ssh
connection. But it is not needed by devising shutdown logic.
Refactor ssh connection loop
fix notification point for connection event

Now connection established and connection down are notified to handler at
the below timing.

* ssh connection established / down
* gerrit stream-events established / down

These established/down events are notified to handler without connecton
type. It should be separated.

But now handler is mainly for stream events, so ones for ssh connection
are not needed.

So this patch stops notification for ssh connection.

In the future, it is better to implement notification for ssh connection
as new interface if needed.
Add interface to check connection status
Fix minor typos in comments

Change-Id: Ia8b00bd0f8b6f981b6c35f9f1f28089f1ed2ec9a
Refactored Trigger missed patches property
TriggerMissedPatches class name changed to TriggerNotReviewedPatches
Bug fix: Triggers only selected unreviewed changes