implement PurgePolicy & RetentionPolicy to manage data

implement PurgePolicy to prune data no longer wanted
implement RetentionPolicy to control how historical documents are preserved