Add templates system for configurations

Add base for hooks