Move SocketIO related-code in independent module
Add emiting events in migration of servers
Introduce events in tasks