Fixes bug 901504 - Updated revision system to work with new middleware -...

... no more config file involved.

@peterbe, @rhelmer, r?