Add custom scripts features.

- Allow running custom scripts on different action of git-review.
- Fixes bug 1021870.

Change-Id: I0e6e72322115daf3986e5957d79de0f3402e7841
Merge "Add custom scripts features."