Autorefresh: should work also on initial page load

fixes #6296
JS/history: handle also requests out of containers

On login/logout (not only) we have requests not rendered to containers.
History handling only cared about them and failed.

fixes #6466