Add AddHook function

Signed-off-by: 商讯在线 <swhbox@foxmail.com>
Merge pull request #16 from admpub/master

Add AddHook function