Add linebreaks to GEXF files

TextMate has a bad habit of crashing if you open a file whose
lines are too long.
Generate JSON files systematically

Also generate them with newlines, so they don’t crash TextMate.