GSoC Template Manager

This is the fresh code for the the project "Improvements to the Template Manager for CMS 3"