input message handling (types, event names, args...)
payload masking function changed (heartbeat corruption problems)
Added libjson linking flag