Properly integrated templates and added controller class

Properly integrated twig into the system along with the Controller class
making it easy to render templates.