Roger Stalley traces the fractured history of Carlingford Castle in Co Louth, accessible to the public again following a ‘bold and unashamedly contemporary‚’ intervention by Howley Hayes Architects