Moves tag map code to model class

Small commit that took the tag mapping code from vdc-manage and move it to the model class so it can be called from other places.