port from master: docman: fix upload when user has submit perms only
Made Apache config snippets compatible with Apache 2.4 (ported from Thorsten's branch, thanks)
Added random nonce to session token to avoid session hash collisions in cron jobs
Merged from 5.2: Made Apache config snippets compatible with Apache 2.4 (ported from Thorsten's branch)