Convert mysql_ to mysqli_

Using https://github.com/philip/MySQLConverterTool w/ some additional
cleanup
Merge pull request #68 from craigdietrich/master

Convert mysql_ to mysqli_

Thanks to Craig Dietrich!