API changes
Changed from mysql_* to a very easy interchangeable system. Now we only support MySQLI, but it should be easy to implement PDO and others.