Support running parallel apps

See #222 for details.