A script to get story IDs.

Also add a URL -> SID mapping, based on the URLs in story-links.