Fix types in getProjects

There was a bug where the types specified a single project would be
returned but stash returns a list
Move pagedresponse type into module