Using APP environment variable to figure out Heroku rails app.

This allows rake integrate and int to work on new projects seamlessly. Please try it out on your own machine. It has worked perfectly with `rake integrate` on mine.

If everything is fine I'll add an entry to the Changelog and merge it.