in all the days of the third age , after the fall of gil-galad , master elrond abode in imladris , and he gathered there many elves , and other folk of wisdom and power from among all the kindreds of middle-earth , and he preserved through many lives of men the memory of all that had been fair ; and the house of elrond was a refuge for the weary and the oppressed , and a treasury of good counsel and wise lore .