Update example code so it compiles and works in Elixir v0.15.0

Also adds rudimentary handling of query string params.  Note that if the remote site does not return a Content-Length header then line 27 will explode (e.g. with URL http://www.cnn.com/). I have not addressed that pre-existing issue.