Upgrade dependencies.
Autoselect ephemeral port if none specified.

Closes #24.