FLUID-5475, FLUID-5468 - Improvements to debugging aids for use in node.js

@colinbdclark - This is the first pull to be merged in in the sequence for http://issues.gpii.net/browse/GPII-873

http://issues.fluidproject.org/browse/FLUID-5475
http://issues.fluidproject.org/browse/FLUID-5468