Fixed and cleaned up history saving. TODO: history restoring. Issue: HAR data error. Page entry should be one for the same request.