notmuch: Break notmuch.c up into several smaller files.