Engine: modifications to support delayed jobs and view publish/refresh

This commit contains several changes to allow support running
delayed jobs (e.g. rake jobs:work from host app) and
publish/refresh of content views.