Refactor integration command

Changes:
* extract integrate_branch method
* reduce codepaths when --resume flag used
bump version