add rack-rewrite, configure for heroku