Add diagram xml files parsing module

Handles both encrypted and 'plain' xml versions.