Re-applied "Redirect users to upload.wikimedia.org for direct links if okay.""

This reverts commit 77e084a724a24d3675308a34d54276e0125564d0.

Change-Id: I43a7e1e7ed2dac15c49e493ef3ad9c69d342070e
Merge "Re-applied "Redirect users to upload.wikimedia.org for direct links if okay."""