Documentation and tests for proxy feature

This is a continuation of #69 .  @dreid Is this what you were looking for?  I can try to add more tests if you think what is here is insufficient.