The Episcopal Divinity School, near Harvard Square since 1867, announced Friday that it has signed an agreement that will allow it to continue as an Episcopal seminary – but not in Cambridge; starting in the fall of 2018, it will be on a campus in New York.