Update authenticate.php

Fix 'Undefined index: wrongpw' error
Merge pull request #4015 from owncloud/fixing-4005-master

EventSource and update fixes [master]
[tx-robot] updated from transifex
Merge pull request #3270 from owncloud/convert-oc_config

Convert OC_Config to object so it can be used for DI
add new file above summary if it is the first file in the list
call expire function before writing the new version to make sure to have enough free space
it is enough to call the expire function once
also expire versions on rename, to update the history more regularly
fix typo in comment
adjust comments
fix some var names according to our style guide
continue cleaning-up old versions if availableSpace=0. It's not necessary but gives us some additional free space, especially in the case of a hard quota
fix array access and change variable names according to the coding style
Merge pull request #4037 from owncloud/add_new_file_above_summary

add new file above summary if it is the first file in the list
[tx-robot] updated from transifex
Merge branch 'master' into doctrine

Conflicts:
	3rdparty
	lib/db.php
	lib/setup.php
	tests/lib/db.php
	tests/lib/dbschema.php
Removed the preview warning. This is only a simple text change
[tx-robot] updated from transifex
Use transifex.com on link to translations
Merge pull request #4061 from rolandgeider/master

Use transifex.com on link to translations