functional upload/download to document manager, removed base64 encoding from documents -- only compressing now