Add automatic support for mysqli interface

Add support for SSL certificates in the MySQL connection
Add mysqli support to installer and minor improvements
Use connection error message on connect error. Decouple DB selection from connection
Merge remote-tracking branch 'upstream/develop' into feature/mysqli

Conflicts:
	setup/inc/class.installer.php
Remove db connection and database params db_query()
Add log error param flag
Make sure db queries use db_query and not  mysql_query (needed for mysqli support)
Make db_query options param optional.
Fix variable typo
Merge pull request #571 from protich/feature/mysqli

Add mysqli interface to osTicket

Reviewed-By: Jared Hancock <jared@osticket.com>