Namespace (h)nics by their (head)nodes.

This is built on top of the work on #162, so that should be merged first.