WINDUP-343: Fixes for discover properties, and some other issues

How about making the CommitPeriodically a standalone action and use it from rules which we expect to iterate over large sets? Still a bit hacky, but less than current :)