Refactor RepositoryController to DeployController

It will also handle MCP and xTools core updates