[Goproc] Move Goproc codegen code into a file called codegen.go
The codegen logic for Goproc has grown to be a bit large; move it to a file called codegen.go inside the Goproc plugin dir.
The codegen also comprises two parts, that should be distinct functions: generating the graph.go, and generating the main.go.