Use null instead of 0 for source DB port when not specified.

Fixes #12.
Use a separate connection per script.

This gives each script a clean environment. Certain commands
can alter connection-level state. For example, changing certain
options.

Fixes #11.
Normalize line endings.