bug #3997 Error handling in case MySQL extension is missing

We can not work with Response object before loading DBI as it uses it.
Fix URL redirector in case of fatal erorrs
Fixed display of link to documentation
Merge remote-tracking branch 'origin/QA_4_0'

Conflicts:
	libraries/database_interface.lib.php