more work on upgrade script. call upgrade script when required
from runservald.
remove upgrade file once applied.
create a log when performing an upgrade.