Use a separate class for reading info.xml

@DeepDiver1975 @butonic @Raydiation @PVince81 
https://github.com/owncloud/3rdparty/pull/117 @LukasReschke 

This should be merged together :)