history tracking system that works in iframes (no more reliance on browser history)