Add proxy support

Assumes that a proxy is always provided, empty or otherwise.