Estimate download size server side

This should be reviewed/merged after PR #785 as this work was based of that other work. There will be less to review when #785 has been merged into master.