Implementation of Rest_API::route_projects_pid() + corresponding
updates for the CLI