Make some DOM members private.

I have not reviewed if this is the complete set of members that can be made
private.
Merge pull request #2727 from Ms2ger/dom-pub

Make some DOM members private.