Removed multiple refresh operations. Refresh operation is now performed
by a single refresh job, which gets stopped and restarted by atomic
operations, to avoid modules being refreshed in the middle of an
operation. Added further support for manifest files.