Refactoring the actionmode to remove items.

Use abstract adapter that controls the actionmode as well as a cache.