PU weighting (70x)

Backport of #4131.

Adds option to run weighted isolation, no changes expected in default running. All documentation in #4131

@bachtis, @monttj