extensive cleanups fix localhistory svn path=/trunk/netsurf/; revision=12153
svn path=/trunk/netsurf/; revision=9940