cmd: Introduce sc_cmd_register() and use it internally

Projects can now register their own commands for the UART interface