Added basic implementation of Templater

Update of some basic lib stuff and the addition of Templater, please check commit messages for more details,