#ASF-4007: added basic require.js support
#RS-4007: added templates engine support