tags: REST API addition

Addition of  API and REST API for tags.
@jirikuncar yes i 've seen it but @greut told me it's up to me to decide because in the end it does not make any difference. @jirikuncar do you want me to remove the `pass` keywords?
In any case the version i uploaded a few hours ago , is the final for the tags API.