Added db upgrade job

I had to add also some extra files:

* support to upgrade from or to a branch
* whitelist scripts, triggers, builder and publisher
* generic gerrit scm

Change-Id: Iae2aaf97d330757441872586aa844ab07cd42f36
Signed-off-by: David Caro <dcaroest@redhat.com>