Changed connected logic closes #637
Merge branch 'master' of github.com:getlantern/lantern