Migrate redirectToFragment() from wikibits.js to own module

This patch creates the new top module
'mediawiki.action.view.redirectToFragment'.
This module contains the same code, but was migrated to use
jQuery.profile to detect the layout of the browser.

Other changes as written on bug 35858 can be done in seperate
patch set(s). This is to have a start.

The old code has to stay a version, because the cache can contain
inline script calls to this function, which should not break.

Bug: 35858
Change-Id: Ic10c060c3a2cbab455348e57740fc8abdc66ff9a
Merge "Migrate redirectToFragment() from wikibits.js to own module"