Implemented wrappers around /API/getLabels and /API/addLabel.