Update Rakefile for Heroku and TravisCI compatibility.