who was the first ruler who took rome from a republic to an empire?