grunt 0.4.x compatibility

Added grunt 0.4.x compatibility by moving task to `lib/heroku-deploy.js`, and replacing replaceHelper stuff with 0.4.x style api.