The 17th-century landmark will house three apartments, preserving original features while introducing lifts, roof lights and modern interiors