Refactored towards better distribution of Angular/Require.js responsibilities