return exit code and pre-deploy git commands

as described in [Issue 7](https://github.com/moredip/heroku-headless/issues/7) and [Issue 8](https://github.com/moredip/heroku-headless/issues/8).