Renamed the main thread to platform_main.
Extracted the command definition from the inputconsole extension.
This allows the usage of the commands without having a polling cmd line
input console.