Move templates to lib dir