Peter Pearson outlines the history of Dublin’s Drimnagh Castle, where he has spear-headed the restoration for nearly four decades