Implement named scoping in mdv syntax

R=arv
BUG=

Review URL: https://codereview.appspot.com/9781046