Added code (button, controller code, route, server route) for logout.