Fix share download

fixes download issue introduced by https://github.com/owncloud/core/pull/10755

This is a fairly large change please test thoroughly as im sure we missed some cases
It was created by the previous pull request that made the short share urls and core is not the place for a controller for the share app