prepare uiauto for real xpath

1. make sure the json we return is amenable to easy transformation into xml
2. add getElement(s)ByIndexPath, to find elements by the path we can follow in the structure to get to that element. this path is added as an attribute to the element in the xml, which is used in appium main.