working on LocalInstanceProcess and adding tests.
added argument dependency sorting.
fixup of local replica set builder.