iOS: Replaced PreferencesViewControllers controls to table views. Fixed several bugs in PreferencesBaseViewController.