set SO_LINGER=0 during port selection

might prevent EADDRINUSE errors in tests
use ipc for notebook js tests

on linux only

This ought to prevent EADDRINUSE errors in the kernel.
add comment explaining null bytes in SO_LINGER
Merge pull request #5244 from minrk/test-ipc

try to avoid EADDRINUSE errors on travis