WIP on making a session do all network transfers on a single thread.

That way, the asset server can run on its own thread but serve *any* session without killing the SSL socket (which is not safe to access from multiple threads).