adds document, client and server to manage and apply transformations.