Keep track of referer and put URLMap into its own file.
Accept starting webpage as parameter.
Don't save webpages to files.