Fix Search persistence.
Add Base#attributes_for_dirty
Don't remove object state when deleted.
Don't delete twice the same object
Rewrite sequel/session_spec.