Improve ResourceLoader support for js/css [beta]

story 293:
separate script/style handling from prepareTemplate
refactor in process
only load special pages css/js and action specific css/js on
the pages they are needed
use RL when possible

Change-Id: Idaa82d2efa675c463068375836e3579fa6644d68
Merge "Improve ResourceLoader support for js/css [beta]"