Fixed autoloader. started template engine

Fixed the autoloader
Started implementing smarty template engine