Extract actual work from generateClient so that we can call it without killing the JVM.
Merge pull request #108 from backstop/generate-client-without-exit

Extract actual work from generateClient so that we can call it without killing the JVM.