In 1869, Henry Doyle became the second Director of the fledgling National Gallery, Anne Hodge recalls his initiatives in shaping the first-class collection on view today