Remove debug module dependency
Update mocha module dependency
Rethink the server module interface
Adjust agent module example
Add comments to agent module