Use PreferenceFragment for preferences

Much of the functionality of PreferenceActivity has been moved into PreferenceFragment and depricated in PreferenceActivity since API 11 (ICS).
This fixes those deprication warnings.