Fix for Debug node circular references (Issue 17) - Also now limit debug message length  ...(more).    Added debugMaxLength setting to settings.js - default 512 - so can be overridden if required. (no doubt this will change)