Arguments reading and several fix:

Prevent creating script file when refreshScript == NO
Cancle the last http request when new on comes, prevent old request
from arriving later than a newer one.