Promote layout flags enum out of UiViewModel.

This greatly simplifies usage and allows it to be used in both Display
and UiViewModel without a circular dependency.
Refactor UI-space conversion to Display.

This allows views to convert from UI-space to screen-space coords even
if they don't use SdlDisplay::DrawUiTexture().
Port to SDL2.