Redirect to the login page if the workspace is not public and the user is not logged in
Move HistoryManager to the Wirecloud javascript variable