Added a connection check to the startup process.

Signed-off-by: Joe Dallago <jd.dallago@gmail.com.(none)>
Added go-flynn/attempt as a dependency.

Signed-off-by: Joe Dallago <jd.dallago@gmail.com>