An Edinburgh man ‘who poses an extreme danger to women’ has been jailed for 12 years following a campaign of violent, sexual and domestic abuse.