Add a list_projects command to the API/CLI

In response to issue #355, add a new API call to list all projects
and the nodes connected to them.

@henn, is this what you were looking for?
Do we maybe want to put the headnodes in here as well?