Added memcache support in smarty. Added conversation messages modification hooks.