- added support for managed pruning of datasets on server
- cleaned up debug messages, re-organized pruning code