Labels jar API

Adds a labels jar api for adding, updating and removing labels, which we then can use from JS for the jar portlet.

@elioschmutz