Begin rewriting json-to-nm.R (now igraph-nm.R)

The script is not yet functional.