Scripts/Commands: Fix static analysis issues
Core/WorldSession: Fix socket not being closed on clean logout

Close the WorldSession socket if Player didn't even login or logged out successfully and then closed the client.
Core/Server: Add missing overrides
Core/Server: Use nullptr instead of 0 where pointers are expected
Merge remote-tracking branch 'upstream/master'