Refactor/reorganise TemplateLoader. Merge Tokenizer::preProcess and tokenize methods.