System templates refactoring, styles and scripts minifying