Allowing JSON string for runPermutations...

instead of file path to JSON file.

This is an incremental step towards fulfilling #762. This makes it a
little easier to programmatically create the swarm description instead
of having to write it to a file. Now you can create it in a dict and
seralize it in a JSON string.