Fixes #4940: Updating to support queryPaged and queryUnpaged across the UI.

Introduces a new factory that wraps ngResource in order to add a centralized
location to define methods that are shared across API resources. In this case,
queryPaged and queryUnpaged is being added to all API resources for querying
the API with paged and unpaged results.