Feature/result xml

I decided to rethink and rewrite the core functions used for parsing data into the Alfred XML format. The new implementation should more simpler and more maintainable.

I am very much interested in feedback on these changes, since this is somewhat of a major rewrite. @Tyilo, could you take a look?