Refactored run_sstable2json and run_json2sstable

Refactored to make CCM do file i/o rather than dtest in run_sstable2json run_json2sstable. This solves the issue with NULL pointers in Java as subprocess.call removes whitespaces from args.