Added UiMode enum and support. Renamed "Mode" to PlayMode for disambigua...

...tion with new UiMode. Looks like my line endings might have been messed up... sorry! The diff isn't that big :-)