(goes after #1917) refactor XForm.get_questions() and other prep for case property reference parsing

addresses feedback from https://github.com/dimagi/commcare-hq/pull/1651