Added logout handler
Merge pull request #262 from Bladrak/logoutHandler

Added logout handler