Added shutdown commands to the node-controller and controlserver-comms scripts.

This will allow me to terminate them gracefully so that I can pipe their outputs to a file
and therefore more easily debug them.