(WIP) Cohorts workgroup for group project

Add support for multiple cohorts and workgroup cohorts.
Some of tests are failing in api_manager apparently due to this PR.