Rewrite projects adapter.

The new projects adapter contains workspaces, projects and tasks.