Implementation of versions and attachments
Refactoring of JSON responses