Implement logout endpoint. Closes #18.