Stable5 anon upload

Backport of the anonymous upload feature to stable5.
This basically contains the pull request #2279, #3838 and #3903

@karlitschek @butonic @icewind1991 @rgeber @schiesbn THX