typofix in io.py
changing `publish_to_room` to `emit` after `IONamespace` subscribes.
finally giving support to use flask's context global vars in socketio's namespaces.
db.commiting after `Game.terminate` and `Game.toggle_pause`.