first pass at template engine, moving classes into autoload