email parse code refactor

New classes for parsing objects