Refined app start-up seq;
Added app:before-template-ready and app:template-ready events;