Add pregisterCssFile() and pregisterScriptFile() to simplify css and js file register.