Fix redirect loop in categories controller. Added back rspec/autorun due to deprecation errors.