refs #26, #43 Implement proper remote logout to clear the session.