Refactor Heroku calls into service.

- Add tests for Heroku and heroku app creation script.