Log accept() failures (these aren't really common)
Move logging stuff to top of file
Use stdout as log if filename is NULL or fopen fails
Add log_line(...) to make logging nicer
Add some signal handlers
Add some shutdown procedures
Add `break' in -l handler (oops)