This patch adds a) a test for the fixed proxy bypass in bug 751465 and makes b) some underlying changes to the nsDNSService to be able to write that test in the first place.