Fix for mysqli persistent connections.

Summary: Removed connection handling from mysqli extension to let mysql_common do it
Only save the connection if its persistent and a new one

Closes #3414
Closes https://github.com/facebook/hhvm/pull/3970

Reviewed By: @paulbiss

Differential Revision: D1613159