add HTTP_REFERER and HTTP_USER_AGENT to args
split REMOTEUPGRADE_SCRIPT_WITH_ARGS to REMOTEUPGRADE_SCRIPT and extra args
do not hardcode url in unit tests