extract method to reset cookie for logout
normalize style in logout-related functions
simplify process_logout() function
move logout-related functions before authentication hook
implement optional path-based logout mechanism (fixes #27)
use 303 See Other instead of 307 Temporary Redirect after logout

Given their descriptions, this seems like a better fit.