CMS-3692: Versioning and workspaces - Create TS-domain classes

Refactored some backend-classes aswell to get a more descriptive domain model.