Fix extends for CLI and HTTP routers and add code in CLI\Console