Improve logging hook to report CPU and GPU memory and utilisation

Following issues with ssh/fork behaviour at Idiap GPU hosts, I implemented a change in my logging hook (largely based on this package's), to incorporate automatic in-process measures of the CPU/GPU memory, model and utilisation. I strongly recommend you do the same in this package (via copy/paste or similar):