Changed pushing addresses to leverage common push function.
Changed pushing lists to leverage the common dopush function.
Added curl flag as an argument to dopush function
Changed pushing files to use the common dopush function.
Refactored retrieving the list of devices into separate function.