COOPR-617: Resource versioning

This PR also include changes for https://issues.cask.co/browse/COOPR-195. 
no, here you delete all versions of some entity. Maybe, you want to delete latest version of this entity?