delete plan and bug fixes

* when a plan is deleted, the related bytestreams are deleted too: fixes #110
* bugfixes sample index and xsl