Hackity hack in a slugify filter.

This will be useful in generating a rewrite map based on the class
names.
Add rewrite file.

Generate Rewrite conditions based on classes in the API docs. This
should help provide BC with old urls when used as a 404 handler.
Add redirect headers.