Moved api/agents_controller to new rails.