New API for listing all labels.

o Core API support for listing labels
o REST API support for listing labels