added api method to return labels of a given project

This add a feature to api to allow return a list of labels of a project.