MAJOR UPDATE - improvements for MVC, and templates support

Added support for templates, and improved the MVC classes .