initial commit
rewrote to support imap/imaps/mbox/maildir and make fancy
first stab at multithreading
add repo stuff
make threads handle failure more gracefully