Added logout function

Fixed up the Facebook issue where the user would log in, post, and fail
to log out. Caused security issues; fixed now.