Improve listen port handling, make binding address configurable, too.
Use strict & warnings.
Set $0 to a reasonable value.