added test for index action in profiles controller, corrected small mistake in profiles controller, added gem for covering ajax tests on mac
added .ruby-version to force travis CI to use ruby 2.1.2 instead of 2.0.0