Mark emails as deleted before they are actually deleted

Fixes #24
Unit tests for liberation