Puts Sender in the ready state after the last connection completes successfully or if a connection fails. This ensures that Sender is ready to for the next record or records.
Adds synchronized lock within Sender state methods where state may change
Merge pull request #9 from kissmetrics/SuccessfulConnections-fix

Successful connections fix