Load settings and init logging on startup.

Haven't decided how to handle startup errors yet.
Settings, game types, languages get passed to UI.

Only most settings are not set in UI yet.