Added skeleton of stack machine emulator, allowing execution.

Only the bare minimum has been implemented to be able to run simplemain,
but there are issues with printing and exit code setting.