Adapts server.py for upgraded socketio package. Fixes intermittent bug in joining rooms.