Fix for different proxy protocol version, and casing of "connection established" message.

Adding a fix to account for multiple protocols and case-insensitive checks on the proxy connection established message. Also, editor config in order to enforce some of the style guidelines.