Allow target branch to be not master

For people that use git-flow "master" is not the integration branch. This
patch just removes the hardcoded "master" and replaces with the value pulled
from the DOM.