Merge pull request #31 from ngoldman/test-config

need workaround for authenticating when testing
add authentication:restored event