Fixes rake tasks to work with RVM

- Revert cleaning out bundler env for generating rails app.
- Reintroduce Gemfile.extra functionality for adding extra
  dependencies