Factor the Tornado application through a WSGI interface.

This commits actually makes *WS slower and in theory less powerful.
It is only a "just-because-we-can-commit", in order to check whether
our current code factors well through a WSGI interface.

Of course this doesn't involve RWS: it is known that RWS doesn't
factor well through a WSGI interface.