Add layout phase to UiScene.

This is mirrors the way we handle the layout phase in ViewModel.
Upgrade MessageScene to a FormScene.