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 before merging it. It has worked perfectly with `rake integrate` on mine.