Address part of issue #37

Change TargetFrameworkVersion to 4.0 to run tests in VS2010
Fix Null Exception in CreateAttachment, Check name parameter exists before use. (And Test for MessageWithAttachmentToMIME822)