Add optimization fix to gutenberg details query. Add profiler middleware support for testing optimizations.
merge with origin/master
cleanup profiler integration