Refacoted window and view controller to use windowNibName and nibName. Fixes #164