Implement [CTCoreMessage isDeleted].

This cleans up some almost-copy-and-paste code at the same time.
Merge pull request #108 from tipbit/is-deleted

Implement [CTCoreMessage isDeleted].