Adds rvm support and api directory