How did Monaco’s Port Hercule get its name?

What do a divine hero of Ancient Greek mythology and a small, wealthy state on the north of the Mediterranean coast have in common? Quite a lot as it happens, and far more than just the name of a harbour…