Fix paperclip file inclusion in document model
Fix paperclip subdomain URL for S3