Expose compact function

- Expose compact function on CDTDatastore
As you shouldn't rely on the error arg for success/failure notification.