Move the redirecting of urls into its own SpecialPage.

Change-Id: I7e9b36b3d4ef59337abae416214656d577421412