Add Fit Screen option to resolution settings
There may be times where users want to have the desktop resolution match the device resolution
on a small screen. The change adds the option without changing existing functionality of the
automatic resolution setting.

Also included localized text strings for the new option and addressed some issues with string
comparison in non en-US locales.
Fixed issue #1281, thread shutdown now properly waiting for quit.
Fixed coverity issue 1047640.
Fixed coverity issue 1047636
Fixed coverity issue 1047635
Fixed coverity issue 1047634
Fixed coverity issue 1047625
Fixed coverity issue 1047624
Fixed coverity issue 1047623
Fixed coverity issue 1047622
Fixed coverity issue 1047621
Fixed coverity issue 1047619
Fixed coverity issue 1047618
Fixed coverity issue 1047617
Fixed coverity issue 1047616
Fixed coverity issue 1047615
Fixed coverity issue 1047614
Fixed coverity issue 1047612
Fixed coverity issue 1047611
Fixed coverity issue 1047609