created restful routes for groups and cohorts

created restful routes for groups and cohorts