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

Closes #1161