[EE] Grapify the projects API

Closed username-removed-128633 requested to merge grapify-projects-api-ee into master

Port of gitlab-org/gitlab-ce!7456.

/cc @razer6