docstring fixes

Also some fixes for None comparisons.
changes file
Fix copy and deletion problems

* reorganize and simplify STORE command processing
* add the notification after the processing of the whole sequence
allow to pass file as argument
Fix UIDVALIDITY command.

thanks to evolution for complaining about this.
Fix indexing error that was rendering attachments unusable

Also, check for empty body-doc