CMS-4401 Implement logout method in AuthResource.
Added invalidate method to Session.