Significant refactorings to parseDataEncoding and its tests after I realized that Resource was undefined within that module. Added event handling to parseRequestHeaders module. Signifiant refactoring of parseResource (tests to follow).