Add support for base branch setting

Fixes #1