Add hook infrastructure

The bot will load script written as simple modules
placed in a configurable directory. The modules can
be checked, and called if they define proper functions