Provide retry and time-out abilities for all connection activities

Adds retry and time-out abilities to all connection activities except discovery.

fixes #23 and #19