Refactoring to use dplyr to perform subsampling and summary instead of data.table (though note that it still returns a data.table).

This required getting rid of the progress bar option: it will now show a progress bar any time the subsampling takes longer than 2 seconds and is not in interactive mode/knitr.

Also got rid of the presample argument, which wasn't being used.