Add proxy support. Fixes #36

Hope it's good!