Move the CommandRegistry to the core

For future usage