Limit clipboard history to about 10,000 items

Once we reach the threshold we delete half the history to ensure a good amortized time complexity.