Made errorMailer compatible with connect.errorHandler.

Closes #1.