Added backup for config.php in autotest.sh script

The script now checks for config.php existance and backs it up before
running the test, then restores it back at the end. This avoids the
situation where devs lose their manually edited config if they forgot to
back it up before running the unit tests.

The script now also checks for config.php permissions beforehand to
avoid displaying an annoying HTML page output in the console with an
error message.
Merge pull request #5100 from owncloud/autotest-backupconfig

Added backup for config.php in autotest.sh script