Refactor code for drawing networks.

Split the rendering code from the code that grabs coappearance data. This lets us reuse the network visualization for other things.