Refactor file sharing public link handling

fixes download issue introduced by #10755

Conflicts:
	apps/files_sharing/public.php
Added download size on public sharing
Merge pull request #11029 from owncloud/fix-share-download

Fix share download