Added function to register template

Added function to ease the process of registering templates in the IoC