jshint
wsp fixes
namings
log from state as well in Connection