Support PDO, MySQL and MySQLi

Related to Issue 1348.

Not ready for inclusion yet:
- needs more testing ? Worked for me: installing YOURLS, adding/editing/deleting short URLs, stat page, with PDO, MySQL & MySQLi
- needs prettier commit log, I suck at this apparently :) (wtf all these "merge master" and "GeoIP update"...)