Allow external users to handle mg_connections directly

By settings num_threads to 0, it is now possible to implement a dynamic
thread pool which consume mongoose sockets and reduce DoS attacks