Add some boilerplate http client code

The code is an absolute mess currently. This needs to get cleaned up
a lot before I would even consider releasing. Really I just want to get
something together that resembles the logic I want to use and then I 
will clean it up in a tighter format.