merge ws + kr message funcs; remove ws_port port from kr object; little style improvements