Netnumbering rewrite

Complete rewrite and enhancement of the netnumbering module.