Handle proxy servers. Fixes #146