[Application] Refactor the implementation of Application::Launch()

The goal of this refactor is to reduce to remove the duplicated logic
for runtime creation, so that we can change to pass more attributes in
the future.

This patch splits the logic for launching into

(a) figure out the right entry point, based on the launch params;
(b) create the runtime.

We have three possible entry points for (a), but the logic for (b) is
pretty much independent. While we still record the use entry point to
decide whether a window will be shown, there's no "tentantive steps" so
we can write only one code for (b).
Merge pull request #1524 from cmarcelo/refactor-application-launch-function

[Application] Refactor the implementation of Application::Launch()