Introduce app info xml parser including basic unit test - necessary for #10777
simplify xml parser code
handle invalid xml file
Merge pull request #12416 from owncloud/app-info-xml-parser-2

App info xml parser 2