adds qld and bugfixes

* adds QLD generation for preservation action plan, fixes #182
* fixes bug writing base64 encoded data
fixes plan parser test for new version 4.0.2