Only close main window if we're a headless app and not launched at boot time

Signed-off-by: Simon Busch <morphis@gravedo.de>
Add support for applications to suppress the loading animation on startup

In some cases this is usefull like for the first use application.

Signed-off-by: Simon Busch <morphis@gravedo.de>