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

And remark that on_connect callback is deprecated now.
Merge pull request #5 from hirose31/fix/on_connect2prepare

Add on_prepare callback and move on_connect to the correct position