Shuffled methods.
Shuffled code.
Minor improvement in prefsChanged().
Added infrastructure for location listeners to LostService.