Add built-in exit command

Make it possible to explicitly exit the shell session by running the
built-in exit command with an optional status code.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>