Rovinj until the End of Middle Ages