Remove most of the deprecated code
Python 3 compat: WSGI, SSL and websocket WIP