Respond to external sharedprefs changes

Manually check if the current project or the current Gerrit
 has been modified while the main activity was paused in
 onResume and call the appropriate callback.

Change-Id: I927ece502366193b4b604c8a076d9cab60dc9ee7