New API for listing all labels.

o Core API support for listing labels
o REST API support for listing labels
Added HA-slave specific handling of label creation, such that labels are created in an ordered way on the master.
Merge pull request #744 from jakewins/2.0-list-labels

2.0 list labels