Update `startApp` to provide app configuration.

Fixes #1328.