core: for websocket, set a minimal reqdata with peer and port nr.
core: serialize {term, 'undefined'} as sql null value.