Some fixes

Fixed a minor bug with the *Upload* button where it would still be enabled even if there were no uploads queued.

Also I fixed a typo I made in a method declaration in **CommonsApp**

And I fixed something caught by Xcode's static analyzer.