updated to latest gerrit and redmine

Updated the script to work with latest gerrit and redmine + added a few extra tweaks