Improving socket tests, jasmine helpers, and adding new socket api stubs
Fix more failing UDP tests