Add support for ":upstream-refspec" and ":debian-refspec"

Fixes #2