More search fixes.  Better History API stuff