On the brink of closure five years ago, the gallery has undergone a restoration befitting one of England’s greatest craftsmen