Use app_BRANCH env var as GitHub branch to deploy on Heroku

It defaults to master if env var does not exist.
Also fix use of branch to monitor on GitHub push (does not work for me to use params["payload"] => nil)