created a global variable (glo_mysql_thrarr) to keep track of mysql threads
removed fds from main()
removed hardcoded limit on number of connections: now is dynamic
Better handling of dead connections: this should fix issue #20