History panel: remove from iframe, general improvements; pack scripts