Added kenyaemr.ensureUserAuthenticated javascript method for ensuring that user is authenticated and displaying login dialog if not
Reworked HFE support javascript to make much easier to maintain