Active/Passive HA

Opening the PR to get some initial review. I will fix the git history to be cleaner, obviously :-)