Add command for starting an application

This is WIP and targets #425.

@neithernut please review my exec() utility function, which is the first
step towards a command.