Fixes tests
Revert "Fixes tests"

This reverts commit 45a07689423a32daafa25cd92ecba304f852c38f.
Fixes tests - adds adds null pointer check.
Adds license missing license header and updates NOTICE/LICENSE files.
Removes reference to Socket.IO from LICENSE as we replaced SOCKET.IO with Atmosphere.
Adds reference for Atmosphere in LICENSE.bin.
Sets project version to 0.4.0.