Refactoring is provided.

Also configuration organization is changed, the callback module should
be provided from the app file.
The npool will not crash if no configuration file is provided.