Upgraded App.defaultTemaplte and App.
Refactored into es6 class.