Adding Groovy Shell on TCP socket. Needs to be enabled explicitly.
Moving shared code from Main to NodeRunner class.