Add 2 callbacks (before/after_connect) and 1 option (connect_timeout)

And remark that on_connect callback is deprecated now.