tags: REST API addition

Addition of  API and REST API for tags.