changes in WMBridge.js and server.js so we pass whole handshake instead of only user address; it enables us to pull more user's headers data such as user agent and xff
clean up: removed unused global variables, adding white spaces
updated PHPDoc about Chat::addLogEntry() method, fixed typos, modified Chat::addConnectionLogEntry() method so it passes more information to logs and added more information to the PHPDoc
CR changes: pass handshakeData instead of handshakeData.headers
clean up: whitespaces
moved getClientIPfromXFF() method from CheckUserHooks class to IP class and refactored all places where it was used; modified a little bit custom method for logging chat joins
DAR-319: pass xff header from nodejs to mw
Revert "DAR-319: pass xff header from nodejs to mw"

This reverts commit db1a1df0f999766d7a37af5672c1f0c2f7f154cf.
clean-up: moved hooks to one place
added run new hook in CheckUser extension - BeforeInsertCheckUserData; and implemented it in Chat extension to avoid adding internal IPs on Special:CheckUser page
Revert "added run new hook in CheckUser extension - BeforeInsertCheckUserData; and implemented it in Chat extension to avoid adding internal IPs on Special:CheckUser page"

This reverts commit fbab6b802577b80d9c39746b4673a09a573d13b8.
Merge pull request #1351 from Wikia/DAR-319

DAR-319: Added more information for chat logs