Add page filtering, legend and location.hash support.