implement full path parsing, including element accessors & literals

R=arv
BUG=

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