Refactor ipsets utility code for easier testing.
Refactor ipset management into its own module.
Add tests that ipsets really do get set up.
Minor tweaks to try and get it ready for review.