Better support for the different versions of StringIO.
Stop premature evaluation of lazily reversed urls. Fixes #12.