misc: moving proxy settings to execute first than other scripts

Also setting npm proxy inside hipache setup script.