Added AlternativesPreferences.

Now we have a class for handling all the stored alternatives'
preferences, as well as the pipes and pumps.