logout page created, others updated

logout page destroys the session and redirects to login
added a define on library page
index page's 'create new' link not working
set logout button on guest page