Move the label editor from the backend to the frontend + fix label editing

Signed-off-by: Jerome Flesch <jflesch@gmail.com>