First swing at adding window.history.
Rewrite history tests in the newer cleaner style.
Use parentWindow instead of createWindow() in these tests.