Make the delegate monitoring API a drop in replacement for the built in one, and thus parameterise pmon and remove dmon.