Implement scan using libmhng

Most of the work involved here actually consists of speaking to the
database.  The current scan misses a whole bunch of

* There is no address book, which means only sender email addresses
  show up.
* Only "scan" works, not the other forms
* This is incapable of setting the current mailbox.

Regardless, it's somewhat decent...