add result exporting as json and geojson

what you should do is create a utility class for file saving
Merge pull request #5 from btfou/master

add result exporting as json and geojson