bug 927441 - update linkfy to use mime-type redirects

Let's use the new shiny.

This also fixes a slight bug in the script.  All tests pass and the command line program works.