implementation of feature request #1363

Improved query profiler
added table for summary of profiler steps to show which states are most disruptive
added sorting to profiler data tables
added labels to profiler chart