General jshint and globals cleanup
Remove old socket lib mocks