The Roman republic ended when which leader came to power?