The SMTP server handler now returns a pipe of messages and a deferred

The deferred is used to signal connection close.

Note all the pipes are still using write_without_pushback for now.