fix bugs regarding XML string extraction. improve pattern IT tests.
heavy devy refactoring. decouple EML parsing and Esper logic -> two
separated modules.