Use configuration template from app

It should be possible to create multiple windows with different
configurations. Store the default configuration in the application
object and use it when instantiating new windows. It's not yet possible
to modify the configuration though.

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