Parent controller

We are having some issues when the main application controller is a tabbed view controller. This merge gives developers ability to specify explicitly the parent view controller.