Properly close the connection (with opcode).
Add “code” & “reason” data for “close”.

Additionally, detect new protocol errors:
    • invalid code;
    • too big reason.
Detect a new protocol error: invalid unicode.
Simplify code. #mania
Detect a new protocol error: invalid code.
Remove a detection: unicode on ping (not needed).
[auto] Merge from Websocket

    • #ad29de8 — Properly close the connection (with opcode). (Ivan Enderlin, 2013-03-13)
    • #17a3dd0 — Add “code” & “reason” data for “close”. (Ivan Enderlin, 2013-03-13)
    • #a7cc0f2 — Detect a new protocol error: invalid unicode. (Ivan Enderlin, 2013-03-13)
    • #a40962c — Simplify code. #mania (Ivan Enderlin, 2013-03-13)
    • #00055cc — Detect a new protocol error: invalid code. (Ivan Enderlin, 2013-03-13)
    • #beb728f — Remove a detection: unicode on ping (not needed). (Ivan Enderlin, 2013-03-13)

---

Merge remote branch 'library-websocket/master'