new simpler templating system and split out templates from yote.util.