Adds: internal history stack, query string, url-handling fixes