Refactor the code for dealing with Ruby environments

- Swap to using Ruby 2.1 by default.
- Run the brew task first before anything else, which means it's allowed
  to deal with installing rbenv and ruby-build
- Create a new script to ensure homebrew is installed
add gemrc file to not get documentation