Added new routes for tags, fixed problems with last refactoring.