refresh returns promise

pass the error to reject()
set less.hasFinished to refresh() promise

fix white space

return promise on modifyVars