SD-485 : implement versioning on server

mongo can't use facets