Added ability to to json i/o
export igraph/json functions
Merge pull request #50 from SEL-Columbia/training

added to/from json functions