FIX: Save the connection state callbacks
Identation
Merge pull request #2 from tavaresb/master

Bugfix: Connection callbacks