Fix issue with resource type in Repo and Lib view controllers. Fix issue with rotation for Server view controller.