refactoring code to get delegation working
TabBar selection is working.

The TabBar View exposes a protocol that
the AppDelegate conforms to and it switches
to the correct view.