Add ALPN support.
Merge pull request #1105 from Lukasa/alpn

Add ALPN support.