Fixed debug message for null variables.

  It now shows 'NULL' rather than ' NULL'.
  Added more logging.

  This is for #95/#96.

  you'll see opening a maildir will log all messages.  After that
 you'll see get-messages called for counting the messages in index
 view.

  (Assuming index_format has either $TOTAL/$UNREAD/etc. in it.)