Add a few simple tests
Add fake Socket for checking IMAP output
Check IMAP greeting

This is too strict, but the greeting shouldn't change
Add a fake AccountManager that will fail unless methods are implemented
Test imap login
Don't fail to delete folders if they contain something
Test failed IMAP login as well
Check for unexpected data
Don't try to delete files as a directory
Add convenience method for sending and flushing the stream
Skip untagged responses when checking login reply
Simple test for select
Simple test for selecting mailbox that doesn't exist
Don't try to delete files that don't exist
Move delete function to Utils class
Delete properly in AccountManagerTest
Print warnings in case there is left over data
Test authentication of a simple username
Merge branch 'bugfixes' into regressionTests
Merge branch 'junit' into regressionTests