Add utility class with debugging methods

The code was migrated from io.scif.util.DebugTools.
Move AppUtils main class heuristic to DebugUtils
DebugUtils: add getStackDump() method

This logic was migrated from the ImageJ2 command
imagej.plugins.commands.debug.DumpStack.