Rework the contribution of require.js and its config.

Now instead of using a Panel we user HeaderItems