bugfix: connect no longer blocks ioloop

In the previous version all active connections would get blocked if
connect blocks. This commit puts the connect into a new thread,
avoiding blocking other connections.
adding .gitigore