mysql: add support for mysqlopts and mysqlconnection env variables

Also, add a mysql_connections plugin