make 'connect_timeout' configurable #117

* #117 rebased on top of latest master