Factor out root view controller stack.

It's like a storyboard! A really shitty storyboard.