Fixed #51 and #52, tests added
Fixing #49 : setting setLimited(true) also sets the ProxyPolicy, so it
works also for rfc proxies.