Added support for connecting over http proxy, updated scripts for 3.1