Bug 752982 - Part 1, implement captive portal detection service. r=thinker,dolske rs=dolske a=shira.
Bug 752982 - Part 2, provide xpcshell test cases for captive portal detection. r=thinker,dolske a=shira.