Unbreak hooks/common.py

Review Request #9198 — Created Sept. 20, 2017 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

Both functions call get_api() in a pre-refactoring (see f4a2b05ee3bed7bafa730834c8c792fddcce6119)
fashion that simply does not work anymore. The proper way to fix this would be to support different
styles (password, token, etc) but for now I just want to make git hooks in contrib/ usable again