WIP tags: REST API addition

Addition of rest api for tags.
Still work in progress.
@jirikuncar is it ok if i fix it in next version? I want to take a look at it with Lars on Monday.