Split out long func into render-net-addrs-html.
Refactored out calc-addrs and calc-coords helper funcs.