Fixed #63. When logout sends request to /api/logout to clear session on the server.