Report metrics on entanglement

This is not quite ready to merge into master yet, I'm just creating the pull request to give some visibility of progress for people who have been asking about the work on entanglement/complectedness.

Fixes #20