Refactor proxy operations into functions

Proxy operations for different configurations in their own functions.
There are 3 unique functions for env, apt and git

* Renamed setproxy to setenvproxy
* Replaced setproxy "" in proxyoff with unsetenvproxy
Update README with latest changes to script