Once a computation is defined, worker sites are set up, the master process code is written by this function. The current implementation does not allow one to mix localhost URLs with non-localhost URLs
writeCode(defn, sites, outputFileName)
the computation definition
a named list of site URLs participating in the computation
the name of the output file to which code will be written
the value TRUE
if all goes well