Add config system, setup template "registry"