Move all proxy connection related classes to their own package. Refactor proxy authentication code.