Make more use of DefineConsoleMethod

Resubmission of #887 with some fixes.
Yes, we are moving ```#endif // DEBUG``` to affect only c++ function, for use ```dumpNetStringTable``` without console error msgs.