Fetch 500 mails during the contact search from each folder since it does not seem to cause much of a performance hit.
Fix #17 - Using UIDs (which should not change in an operation destructive way) rather than simple message numbers.