Switch current seed file format to JSON

Features summary:
1) Write seeds in a JSON fomat
2) Load seeds from JSON format to a GKEY instance
3) Clean up some code