Refactor Parsoid to support porting

From atwg
Description Refactor Parsoid to facilitate future port or integration efforts
Associated Outputs [[Output:1.4|]]
Type Development
Primary Team Parsing
Collaborating Teams
Start Year 0
End Year 0
Duration (months) 3
Depends On Tasks
Risks
Contingencies
Benefits This step is useful for improved maintenance, readability of the Parsoid codebase independent of the port. It also reduces the time spent doing the actual port.
Assumptions
Implications
Notes The code cleanup and refactoring doesn't need to depend on the architecture document.