parse connection query string into array

Should allow passing of custom data with handshake.