EZP-22641: Handled asynchronous publishing

> Backport of ezsystems/ezmultiupload#11

Unlike the master version, this one doesn't remove the node/view/line_thumbnail.tpl overrides. Instead, it uses `node_view_gui` if the content has a main node, and content_view_gui if it doesn't. This should avoid any BC break in overrides configuration.