More reliability fixes.

1. Handle some non-retryable errors specifically.
2. Don't attempt to sync files that are 0 bytes in size or that are hidden.
3. Name the thread that is used for uploading photos to simplify debugging.
4. Mark photos that fail to upload with an X, similar to the check in case of success.
5. Reduce retry count from 30 to 5.