Many changes, particularly for mysql.  Using prepared statements and getting the results after to hopefully use less memory to obtain data.  Fix exporting the sql db so it doesn't pass the file size with the download.  Move nearly all of the location plugin stuff so it's purely in the plugin, not hard coded.

git-svn-id: https://svn.code.sf.net/p/freeghost/code/trunk@2518 71f96598-fa45-0410-b640-bcd6f8691b32
Merge svn with dev-branch
Merge master with svn
Merge master with dev-branch