Added socket data waiting (fixes handshake), updated websocketpp, emit changed to emit_function, changed HTTP version in POST to 1.1