Refactor PMA_Util::getLatestVersion() and PMA_sendErrorReport() (Feature Request 1466)

http://sourceforge.net/p/phpmyadmin/feature-requests/1466/

Minor refactoring to get some code-reuse. I will work some more on this to see if it can be improved further.