New connection parser

I was able to get some better performance numbers from our poor Connection class.

@adamvr could you please review it?

I'm getting something near 10% increase.