Add internal support for screen size/ratio, and version qualifiers.

UI will come later.
BUG: 2048256, 2048264
5 files changed