add Agent module
+ fix phpunit tests
+ remove unused code
+ add admin route