add url to document model, and remove hacks to determine it from client
update production client