Various improvements related to dismissing items

Multiple patches improving the the dismissing of items:

* actually modify the data store
* fix the animations in most cases (with the exception of the animateHeightOnDismiss)
* implement the Android GMail behavior.

Feedback welcome. I can easily merge and split patches if needed.