Instantiate dmesh_network in shared library
Support concrentrated mesh networks

There's no tests for this because I can't figure out how to generate
them in a simpler way than the C code I just wrote.