allows hot upgrade of gafferd

now sending `kill -HUP` will relaunch gafferd with the new config.

While I'm here, introduce logging and many fixes.