Shared date formatter and `get message threads` stub SQL to the encrypted database.
Remove duplicated code.
LatestMessage property on TSThread for previewing.
Use NSInteger instead of int.
Small cleanups on the compose message view controller.
Debug database call for all threads using current stub query.