update controller to work for locales queries + add Project::getRepositoryLocales() method + add API::getService() method