Update pusherhub.lua

Now we can handle the socket reading multiple events at once using the frame header metadata (per the rfc). Cleaned up opcodes. Made some questionable functions. I'm new to Lua so whatever.