Moved Smarty into Core library. Update to Smarty 3.1.19. Modified the autoloader to remove the duplicate implementation of smartyAutoload, and duplicate Smarty defines from common_defs.php