apps: Add some options, fix bugs

Add Watch field to StartArgs so that the app can be watched right after
being started.

Add Timeout field to StopArgs so that the app can be killed after the
timeout expires. This is useful for stopping badly implemented apps.

And then, fix various bugs.