Convert HTTP examples to code samples

Staring with Ruby and Python. This is not ready to be merged, but I was hoping to get some feedback on whether or not I'm on the right track.