Gopherize error messaging in mgopherd.c

 * Introduce new item tyes for error messages and informational messages.
 * Use new W_ERR, W_INFO and W_END  macros to send messages to the client
   instead of printing messages to stderr.
 * While here do some housekeeping and free resources, even in error cases.