Gandalf, Friend of the Shire