handle login/logout when testing using metacat client (recent refactoring to use more standard http client code)
handle login/logout when testing using metacat client (recent refactoring to use more standard http client code)