Add DB method for getting amount of data to sync
This branch adds a database method for getting the amount of message data waiting to be synced to a contact. This is less than the total amount of data that will be sent, as it excludes acks and framing overhead, but it can be used to provide progress updates in the UI.
The target branch is the new feature branch for #1802 (closed).
Closes #2013 (closed)