WIP: Moved registration to template/api and config/api