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