feat(scope): move domWrite and domRead from RootScope to Scope

Closes #1161

Closes #1341