[refacto] cleanup account
- removed tmp attribute mailboxes
- moved smtp function to account_smtp
[refacto] remove imap_processes
- move the methods to the models (in separate files)
- fetch mails flags on refresh
- dont get all mailbox UIDs in RAM at once
to be squashed
some test fixes
Merge remote-tracking branch 'brice/master'

Conflicts:
	server/controllers/messages.coffee
	server/models/account.coffee
	server/processes/imap_processes.coffee
[misc] various fixes for tests
add aditional info about testing
add script to NPM manifest to run client tests
re-generated messages with proper field
Merge remote-tracking branch 'brice/master'
testfix - proper SMTP options & check favorites
Merge branch 'master' of github.com:aenario/cozy-emails
update client test instructions
improve erreur handling
improve tree flattening for exotic trees
[bugfix] dedup was broken
mailbox rename & delete now take into account submailboxes
[bugfix] error handling for missing trashBox
[bugfix] reporter didn't have an account
bugfix, bugfix, bugfix