Added debug shortcut.
Updated extension loading library.
Added console support and better shutdown handling.