Added missing semicolon on Parser
Added missing semicolons on Protocol
Add initial code for connection state (CONNECTED/DISCONNECTED)
Add AUTHENTICATED state
Change AUTHENTICATED state detection

The first naive approach was failing because I was forcing an handshake
callback on connect
Changes connection states to lowercase, adds protocol error as a connection state
Changes unknown protocol error from "error" to "protocol_error"
Forces protocol error state to be "protocol_error"
Merge pull request #338 from felixge/connection_state

Connection state