Support for setting proxy-share difficulty for stratum and getwork proxies

Supercedes #456