HPCC-10816 Add back/forward support to GraphWidget

Improve caching of layouts.
Allow main graph to view "localised" graphs.
Improve "safe" mode.

Fixes HPCC-10816

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>