Separate frontend from backend for DOM API.
Add basic Xerces support for DOM API.