Add logout method. Resolve Auth and Session out of the IOC container.
remove logout method
merged upstream