Support PDO, MySQL and MySQLi

Related to Issue 1348.

Not ready for inclusing 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 :)