Added connection retry on startup
Changes as per feedback
Reduced timeout between sleeps to 1 second
Merge pull request #1 from motain/connection-retry

Added connection retry on startup