Pembroke Castle is best known as the birthplace of King Henry VII, but its history goes back much further.