switch place of parameters in mysql_connect

now it's like it should be (just like in all other MySQL plugins and even in the MySQL C connector itself)
create option management system
move auto-reconnect option from mysql_connect to mysql_option
protect every MySQL C API call in connection class with mutex

safety first, this plugin has to be absolutely stable