Things do not quite work yet, but I'm close. I am committing right now as a checkpoint.
# FIXME implement conditional routing wrt Rails 3 here