Cleaning up
Smarty update to version 3.1.15
Implemented hooks subsystem