disco: path-dependent features and identities

extend dynamic identities such that for a path pattern identities as
well as features can be computed from rules.
disco: register dynamic node features along with identities
disco: cancel feature registration if nil