Update Smarty and update code to Kohana 3.3