Improve preference change handling

Change-Id: I65078c7a788adda8962aa9b34ac95f3d46698bb8
Fix: changes from previous Gerrit appearing in list and in database
TheApplication: Send a local broadcast when the Gerrit changes
Let CardsFragment handle its own adapter