Add checking for pending note uploads.

Adds a mechanism for determining when a note's upload to the server is pending.   Fixes #114.