Added socketio support and url previewing