Implement element persistence layer
- service and dao
- respect dependencies
- delete the schema ->delete the element hierarchy
- create the element hierary ->set root id and save schema
(from redmine: issue id 294, created on 2018-01-22tgradl, closed on 2018-01-22)