Added redirect handler, unified check for nonce for different modes of upload
Fixing a typo
Coding standards
Finished refactoring upload function
Added response handling
Remove old upload_content method, added docbloc comments
Fixed nightly typos