Add ability to use a proxy.

Great library, but I need to go through a proxy. Instead of adding another var on the constructor, I decided to put it in as a setter.
Sadly, this project doesn't use tabs as indentation. You will probably have to change this to spaces here.