Added Proxy support

Original commit comes from carmenates09/apt-mirror@01833f2adf4a14ed14ef32ac0d85790826947119
I've actualized it for the new status of the project.
It fixes issue #7 and have the same context as #17