Fix bug where logger fails on undefined values
add function to get the previous sibling element from an XML node
ensure that the default id is not used by anything but top-level elements, test app
Merge pull request #148 from appcelerator/ALOY-682

[ALOY-682] Prevent default ID for a view's root element to be used by child element