Commits for review: Add php Error Reporting Functionality to PMA (Rebased)

*In continuation with Pull#1207.*
**Things Done:**
 - [x] Rebasing with upstream. (There were few conflicts which I had to resolve.)
 - [x] Some displayed message improvements.
 - [x] Found & stopped one more false alarm.

**~~Things yet TODO:~~**  *Done now*
 - [x] Remove inline JavaScripts as suggested in [Pull#1207](https://github.com/phpmyadmin/phpmyadmin/pull/1207#discussion_r13531075).

~~Will push **TODO** changes soon.~~ *Done now*

Till then, kindly review other parts. :smiley: 
No problem. I'll change it. 
But can you please tell me how to determine the index dynamically?
*I had taken that code as it was earlier in JavaScript error reporting only. See [L#78 of error_report.lib.php @ PMA/PMA](https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/error_report.lib.php#L78)*