add lib/v3.d/hooks.sh.
Merge pull request #19 from hansode/feature-hooks