Added a script for rewriting links in a directory.

Simply traverses the directory and applies the file-by-file rewrite to
every file in the directory, preserving the directory structure in the
new location.