Page initialisation improvements

1. Tidy fabrik.php code and raise questions about logic.
2. Change page initialisation code from being triggered by fabrik.loaded to a requirejs.
3. Make use of requirejs consistent in no-conflict mode by using requirejs/requirejs.config instead of require/require.config (see require.js documentation).