try to avoid EADDRINUSE errors on travis

- use ipc for notebook js tests (on linux only)
- set SO_LINGER=0 during port selection