Documents versioning and storage