Fix formatting of the requestJSON function

Fix formatting of the requestJSON function to match the other functions
defined in kimchi.api.js.

Signed-off-by: Adam King <rak@linux.vnet.ibm.com>
Issue 294 The auto logout leaves action menu on page - add classes

When the user session ends, content that should no longer be visible
to the unauthenticated user is left in the DOM. The issue as written
notes that the guest action menu is displayed above the login window,
leading to a buggy user experience. Information about the users
guests, storage pools, networks, etc may also be left visible in the
browser.

This patch uses classes remove-when-logged-off and empty-when-logged-off
to mark those parts of the DOM that should no longer be available to
the user after the session has ended.

Signed-off-by: Adam King <rak@linux.vnet.ibm.com>
Issue 294 The auto logout leaves action menu on page - update JS

This patch updates those parts of the DOM marked with the classes
remove-when-logged-off and empty-when-logged-off
removing or emptying sections as noted by class.

Additionally, the change reloads the browser whenever the AJAX request
which caused us to detect that the session has ended is not marked for
resend. This handles the case where we are in some subwindow of the UI
when we detect that our session has ended, and loads the correct tab.

Signed-off-by: Adam King <rak@linux.vnet.ibm.com>