Add console output function

The loader has 2 consoles: a main console and a debug console. The main
console will be used for the UI, the debug console is used for debug
output.