PU weighting (71x)

Backport of #4131. (for completeness, 70x request is #4508)

Adds option to run weighted isolation, no changes expected in default running. All documentation in #4131

@bachtis, @monttj