swap PEAR_Log for monolog (composer-compatible); update to Smarty 3.